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