2 # Copyright (C) The Arvados Authors. All rights reserved.
4 # SPDX-License-Identifier: Apache-2.0
6 {%- if grains.os_family in ('RedHat',) %}
7 {%- set group = 'nginx' %}
9 {%- set group = 'www-data' %}
23 arvados_workbench2_default.conf:
28 - server_name: workbench2.fixme.example.net
31 - location /.well-known:
34 - return: '301 https://$host$request_uri'
36 arvados_workbench2_ssl.conf:
40 file: nginx_snippet_arvados-snakeoil.conf
43 - server_name: workbench2.fixme.example.net
46 - index: index.html index.htm
48 - root: /var/www/arvados-workbench2/workbench2
49 - try_files: '$uri $uri/ /index.html'
50 - 'if (-f $document_root/maintenance.html)':
52 - location /config.json:
53 - return: {{ "200 '" ~ '{"API_HOST":"fixme.example.net"}' ~ "'" }}
54 - include: 'snippets/ssl_hardening_default.conf'
55 - include: 'snippets/arvados-snakeoil.conf'
56 - access_log: /var/log/nginx/workbench2.fixme.example.net.access.log combined
57 - error_log: /var/log/nginx/workbench2.fixme.example.net.error.log