2 {%- if grains.os_family in ('RedHat',) %}
3 {%- set group = 'nginx' %}
5 {%- set group = 'www-data' %}
21 upstream workbench_upstream:
22 - server: '127.0.0.2:9000 fail_timeout=10s'
28 arvados_workbench_default.conf:
33 - server_name: workbench.fixme.example.net
36 - location /.well-known:
39 - return: '301 https://$host$request_uri'
41 arvados_workbench_ssl.conf:
46 - server_name: workbench.fixme.example.net
49 - index: index.html index.htm
51 - proxy_pass: 'http://workbench_upstream'
52 - proxy_read_timeout: 300
53 - proxy_connect_timeout: 90
54 - proxy_redirect: 'off'
55 - proxy_set_header: X-Forwarded-Proto https
56 - proxy_set_header: 'Host $http_host'
57 - proxy_set_header: 'X-Real-IP $remote_addr'
58 - proxy_set_header: 'X-Forwarded-For $proxy_add_x_forwarded_for'
59 - include: 'snippets/ssl_hardening_default.conf'
60 # - include: 'snippets/letsencrypt.conf'
61 - include: 'snippets/ssl_snakeoil.conf'
62 - access_log: /var/log/nginx/workbench.fixme.example.net.access.log combined
63 - error_log: /var/log/nginx/workbench.fixme.example.net.error.log
65 arvados_workbench_upstream.conf:
70 - listen: '127.0.0.2:9000'
71 - server_name: workbench
72 - root: /var/www/arvados-workbench/current/public
73 - index: index.html index.htm
74 - passenger_enabled: 'on'
75 # yamllint disable-line rule:line-length
76 - access_log: /var/log/nginx/workbench.fixme.example.net-upstream.access.log combined
77 - error_log: /var/log/nginx/workbench.fixme.example.net-upstream.error.log