7bf095de3aa4c98a871813de3df216999719a6eb
[arvados.git] / tools / salt-install / config_examples / single_host / single_hostname / pillars / nginx_workbench_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   ### SERVER
14   server:
15     config:
16
17       ### STREAMS
18       http:
19         upstream workbench_upstream:
20           - server: '__IP_INT__:9000 fail_timeout=10s'
21
22   ### SITES
23   servers:
24     managed:
25       arvados_workbench_ssl:
26         enabled: true
27         overwrite: true
28         config:
29           - server:
30             - server_name: __HOSTNAME_EXT__
31             - listen:
32               - __WORKBENCH1_EXT_SSL_PORT__ http2 ssl
33             - index: index.html index.htm
34             - location /:
35               - proxy_pass: 'http://workbench_upstream'
36               - proxy_read_timeout: 300
37               - proxy_connect_timeout: 90
38               - proxy_redirect: 'off'
39               - proxy_set_header: X-Forwarded-Proto https
40               - proxy_set_header: 'Host $http_host'
41               - proxy_set_header: 'X-Real-IP $remote_addr'
42               - proxy_set_header: 'X-Forwarded-For $proxy_add_x_forwarded_for'
43             - include: 'snippets/arvados-snakeoil.conf'
44             - access_log: /var/log/nginx/workbench.__CLUSTER__.__DOMAIN__.access.log combined
45             - error_log: /var/log/nginx/workbench.__CLUSTER__.__DOMAIN__.error.log
46
47       arvados_workbench_upstream:
48         enabled: true
49         overwrite: true
50         config:
51           - server:
52             - listen: '__IP_INT__:9000'
53             - server_name: workbench
54             - root: /var/www/arvados-workbench/current/public
55             - index:  index.html index.htm
56             - passenger_enabled: 'on'
57             # yamllint disable-line rule:line-length
58             - access_log: /var/log/nginx/workbench.__CLUSTER__.__DOMAIN__-upstream.access.log combined
59             - error_log: /var/log/nginx/workbench.__CLUSTER__.__DOMAIN__-upstream.error.log