2 {%- if grains.os_family in ('RedHat',) %}
3 {%- set group = 'nginx' %}
5 {%- set group = 'www-data' %}
19 arvados_workbench2_default.conf:
24 - server_name: workbench2.fixme.example.net
27 - location /.well-known:
30 - return: '301 https://$host$request_uri'
32 arvados_workbench2_ssl.conf:
37 - server_name: workbench2.fixme.example.net
40 - index: index.html index.htm
42 - root: /var/www/arvados-workbench2/workbench2
43 - try_files: '$uri $uri/ /index.html'
44 - 'if (-f $document_root/maintenance.html)':
46 - location /config.json:
47 - return: {{ "200 '" ~ '{"API_HOST":"fixme.example.net"}' ~ "'" }}
48 - include: 'snippets/ssl_hardening_default.conf'
49 # - include: 'snippets/letsencrypt.conf'
50 - include: 'snippets/ssl_snakeoil.conf'
51 - access_log: /var/log/nginx/workbench2.fixme.example.net.access.log combined
52 - error_log: /var/log/nginx/workbench2.fixme.example.net.error.log