2 # Copyright (C) The Arvados Authors. All rights reserved.
4 # SPDX-License-Identifier: AGPL-3.0
19 upstream workbench_upstream:
20 - server: 'localhost:9000 fail_timeout=10s'
26 arvados_workbench_default.conf:
31 - server_name: workbench.__CLUSTER__.__DOMAIN__
35 - return: '301 https://$host$request_uri'
37 arvados_workbench_ssl.conf:
44 - server_name: workbench.__CLUSTER__.__DOMAIN__
46 - __CONTROLLER_EXT_SSL_PORT__ http2 ssl
47 - index: index.html index.htm
49 - proxy_pass: 'http://workbench_upstream'
50 - proxy_read_timeout: 300
51 - proxy_connect_timeout: 90
52 - proxy_redirect: 'off'
53 - proxy_set_header: X-Forwarded-Proto https
54 - proxy_set_header: 'Host $http_host'
55 - proxy_set_header: 'X-Real-IP $remote_addr'
56 - proxy_set_header: 'X-Forwarded-For $proxy_add_x_forwarded_for'
57 - include: snippets/ssl_hardening_default.conf
58 - ssl_certificate: __CERT_PEM__
59 - ssl_certificate_key: __CERT_KEY__
60 - access_log: /var/log/nginx/workbench.__CLUSTER__.__DOMAIN__.access.log combined
61 - error_log: /var/log/nginx/workbench.__CLUSTER__.__DOMAIN__.error.log
63 arvados_workbench_upstream:
68 - listen: 'localhost:9000'
69 - server_name: workbench
70 - root: /var/www/arvados-workbench/current/public
71 - index: index.html index.htm
72 - passenger_enabled: 'on'
73 # yamllint disable-line rule:line-length
74 - access_log: /var/log/nginx/workbench.__CLUSTER__.__DOMAIN__-upstream.access.log combined
75 - error_log: /var/log/nginx/workbench.__CLUSTER__.__DOMAIN__-upstream.error.log