feat(provision): refactor to add other setup examples
[arvados.git] / tools / salt-install / config_examples / single_host / single_hostname / pillars / nginx_workbench2_configuration.sls
1 ---
2 # Copyright (C) The Arvados Authors. All rights reserved.
3 #
4 # SPDX-License-Identifier: AGPL-3.0
5
6 ### ARVADOS
7 arvados:
8   config:
9     group: www-data
10
11 ### NGINX
12 nginx:
13   ### SITES
14   servers:
15     managed:
16       arvados_workbench2_ssl:
17         enabled: true
18         overwrite: true
19         config:
20           - server:
21             - server_name: __HOSTNAME_EXT__
22             - listen:
23               - __WORKBENCH2_EXT_SSL_PORT__ http2 ssl
24             - index: index.html index.htm
25             - location /:
26               - root: /var/www/arvados-workbench2/workbench2
27               - try_files: '$uri $uri/ /index.html'
28               - 'if (-f $document_root/maintenance.html)':
29                 - return: 503
30             - location /config.json:
31               - return: {{ "200 '" ~ '{"API_HOST":"__HOSTNAME__:__CONTROLLER_EXT_SSL_PORT__"}' ~ "'" }}
32             - include: 'snippets/arvados-snakeoil.conf'
33             - access_log: /var/log/nginx/workbench2.__CLUSTER__.__DOMAIN__.access.log combined
34             - error_log: /var/log/nginx/workbench2.__CLUSTER__.__DOMAIN__.error.log