test(examples): remove workbench upstream in nginx
[arvados-formula.git] / test / salt / pillar / examples / nginx_workbench_configuration.sls
1 ---
2 {%- if grains.os_family in ('RedHat',) %}
3   {%- set group = 'nginx' %}
4 {%- else %}
5   {%- set group = 'www-data' %}
6 {%- endif %}
7
8 ### ARVADOS
9 arvados:
10   config:
11     group: {{ group }}
12
13 ### NGINX
14 nginx:
15   ### SITES
16   servers:
17     managed:
18       ### DEFAULT
19       arvados_workbench_default.conf:
20         enabled: true
21         overwrite: true
22         config:
23           - server:
24             - server_name: workbench.fixme.example.net
25             - listen:
26               - 80
27             - location /.well-known:
28               - root: /var/www
29             - location /:
30               - return: '301 https://$host$request_uri'
31
32       arvados_workbench_ssl.conf:
33         enabled: true
34         overwrite: true
35         config:
36           - server:
37             - server_name: workbench.fixme.example.net
38             - listen:
39               - 443 http2 ssl
40             - index: index.html index.htm
41             - location /:
42             - root: /var/www/arvados-workbench/current/public
43             - passenger_enabled: 'on'
44             - include: 'snippets/ssl_hardening_default.conf'
45             # - include: 'snippets/letsencrypt.conf'
46             - include: 'snippets/ssl_snakeoil.conf'
47             # yamllint disable-line rule:line-length
48             - access_log: /var/log/nginx/workbench.fixme.example.net.access.log combined
49             - error_log: /var/log/nginx/workbench.fixme.example.net.error.log
50