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:
41 - server_name: workbench2.fixme.example.net
44 - index: index.html index.htm
46 - root: /var/www/arvados-workbench2/workbench2
47 - try_files: '$uri $uri/ /index.html'
48 - 'if (-f $document_root/maintenance.html)':
50 - location /config.json:
51 - return: {{ "200 '" ~ '{"API_HOST":"fixme.example.net"}' ~ "'" }}
52 - include: 'snippets/ssl_hardening_default.conf'
53 # - include: 'snippets/letsencrypt.conf'
54 - include: 'snippets/ssl_snakeoil.conf'
55 - access_log: /var/log/nginx/workbench2.fixme.example.net.access.log combined
56 - error_log: /var/log/nginx/workbench2.fixme.example.net.error.log