feat(components): add submodules and tests
[arvados-formula.git] / test / salt / pillar / examples / nginx_workbench2_configuration.sls
1 ---
2 {% set nginx_log = '/var/log/nginx' %}
3
4 ### ARVADOS
5 arvados:
6   config:
7     group: www-data
8
9 ### NGINX
10 nginx:
11   ### SITES
12   servers:
13     managed:
14       ### DEFAULT
15       arvados_workbench2_default:
16         enabled: true
17         overwrite: true
18         config:
19           - server:
20             - server_name: workbench2.example.net
21             - listen:
22               - 80
23             - location /.well-known:
24               - root: /var/www
25             - location /:
26               - return: '301 https://$host$request_uri'
27
28       arvados_workbench2:
29         enabled: true
30         overwrite: true
31         config:
32           - server:
33             - server_name: workbench2.example.net
34             - listen:
35               - 443 http2 ssl
36             - index: index.html index.htm
37             - location /:
38               - root: /var/www/arvados-workbench2/workbench2
39               - try_files: '$uri $uri/ /index.html'
40               - 'if (-f $document_root/maintenance.html)':
41                 - return: 503
42             # - include: 'snippets/letsencrypt.conf'
43             - include: 'snippets/snakeoil.conf'
44             - access_log: {{ nginx_log }}/workbench2.example.net.access.log combined
45             - error_log: {{ nginx_log }}/workbench2.example.net.error.log