2 {% set nginx_log = '/var/log/nginx' %}
17 upstream workbench_upstream:
18 - server: '127.0.0.1:9000 fail_timeout=10s'
24 arvados_workbench_default:
29 - server_name: workbench.example.net
32 - location /.well-known:
35 - return: '301 https://$host$request_uri'
42 - server_name: workbench.example.net
45 - index: index.html index.htm
47 - proxy_pass: 'http://workbench_upstream'
48 - proxy_read_timeout: 300
49 - proxy_connect_timeout: 90
50 - proxy_redirect: 'off'
51 - proxy_set_header: X-Forwarded-Proto https
52 - proxy_set_header: 'Host $http_host'
53 - proxy_set_header: 'X-Real-IP $remote_addr'
54 - proxy_set_header: 'X-Forwarded-For $proxy_add_x_forwarded_for'
55 # - include: 'snippets/letsencrypt.conf'
56 - include: 'snippets/snakeoil.conf'
57 - access_log: {{ nginx_log }}/workbench.example.net.access.log combined
58 - error_log: {{ nginx_log }}/workbench.example.net.error.log
60 arvados_workbench_upstream:
65 - listen: '127.0.0.1:9000'
66 - server_name: workbench
67 - root: /var/www/arvados-workbench/current/public
68 - index: index.html index.htm
69 # yamllint disable-line rule:line-length
70 - access_log: {{ nginx_log }}/workbench.example.net-upstream.access.log combined
71 - error_log: {{ nginx_log }}/workbench.example.net-upstream.error.log