feat(salt): start salt install documentation
[arvados.git] / tools / salt-install / salt_pillars / nginx_workbench2_configuration.sls
1 ---
2 # Copyright (C) The Arvados Authors. All rights reserved.
3 #
4 # SPDX-License-Identifier: CC-BY-SA-3.0
5
6 {% set nginx_log = '/var/log/nginx' %}
7
8 ### ARVADOS
9 arvados:
10   config:
11     group: www-data
12
13 ### NGINX
14 nginx:
15   ### SITES
16   servers:
17     managed:
18       ### DEFAULT
19       arvados_workbench2_default:
20         enabled: true
21         overwrite: true
22         config:
23           - server:
24             - server_name: workbench2.arv.local
25             - listen:
26               - 80
27             - location /.well-known:
28               - root: /var/www
29             - location /:
30               - return: '301 https://$host$request_uri'
31
32       arvados_workbench2:
33         enabled: true
34         overwrite: true
35         config:
36           - server:
37             - server_name: workbench2.arv.local
38             - listen:
39               - 443 http2 ssl
40             - index: index.html index.htm
41             - location /:
42               - root: /var/www/arvados-workbench2/workbench2
43               - try_files: '$uri $uri/ /index.html'
44               - 'if (-f $document_root/maintenance.html)':
45                 - return: 503
46             # - include: 'snippets/letsencrypt.conf'
47             - include: 'snippets/snakeoil.conf'
48             - access_log: {{ nginx_log }}/workbench2.arv.local.access.log combined
49             - error_log: {{ nginx_log }}/workbench2.arv.local.error.log