2 # Copyright (C) The Arvados Authors. All rights reserved.
4 # SPDX-License-Identifier: AGPL-3.0
17 arvados_workbench2_default.conf:
22 - server_name: workbench2.__CLUSTER__.__DOMAIN__
26 - return: '301 https://$host$request_uri'
28 arvados_workbench2_ssl.conf:
35 - server_name: workbench2.__CLUSTER__.__DOMAIN__
37 - __CONTROLLER_EXT_SSL_PORT__ http2 ssl
38 - index: index.html index.htm
40 - root: /var/www/arvados-workbench2/workbench2
41 - try_files: '$uri $uri/ /index.html'
42 - 'if (-f $document_root/maintenance.html)':
44 - location /config.json:
45 - return: {{ "200 '" ~ '{"API_HOST":"__CLUSTER__.__DOMAIN__:__CONTROLLER_EXT_SSL_PORT__"}' ~ "'" }}
46 - include: snippets/ssl_hardening_default.conf
47 - ssl_certificate: __CERT_PEM__
48 - ssl_certificate_key: __CERT_KEY__
49 - access_log: /var/log/nginx/workbench2.__CLUSTER__.__DOMAIN__.access.log combined
50 - error_log: /var/log/nginx/workbench2.__CLUSTER__.__DOMAIN__.error.log