Fix 2.4.2 upgrade notes formatting refs #19330
[arvados.git] / tools / salt-install / config_examples / multi_host / aws / 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: 'localhost:9000 fail_timeout=10s'
21
22   ### SITES
23   servers:
24     managed:
25       ### DEFAULT
26       arvados_workbench_default.conf:
27         enabled: true
28         overwrite: true
29         config:
30           - server:
31             - server_name: workbench.__CLUSTER__.__DOMAIN__
32             - listen:
33               - 80
34             - location /:
35               - return: '301 https://$host$request_uri'
36
37       arvados_workbench_ssl.conf:
38         enabled: true
39         overwrite: true
40         requires:
41           __CERT_REQUIRES__
42         config:
43           - server:
44             - server_name: workbench.__CLUSTER__.__DOMAIN__
45             - listen:
46               - __CONTROLLER_EXT_SSL_PORT__ http2 ssl
47             - index: index.html index.htm
48             - location /:
49               - proxy_pass: 'http://workbench_upstream'
50               - proxy_read_timeout: 300
51               - proxy_connect_timeout: 90
52               - proxy_redirect: 'off'
53               - proxy_set_header: X-Forwarded-Proto https
54               - proxy_set_header: 'Host $http_host'
55               - proxy_set_header: 'X-Real-IP $remote_addr'
56               - proxy_set_header: 'X-Forwarded-For $proxy_add_x_forwarded_for'
57             - include: snippets/ssl_hardening_default.conf
58             - ssl_certificate: __CERT_PEM__
59             - ssl_certificate_key: __CERT_KEY__
60             - access_log: /var/log/nginx/workbench.__CLUSTER__.__DOMAIN__.access.log combined
61             - error_log: /var/log/nginx/workbench.__CLUSTER__.__DOMAIN__.error.log
62
63       arvados_workbench_upstream:
64         enabled: true
65         overwrite: true
66         config:
67           - server:
68             - listen: 'localhost:9000'
69             - server_name: workbench
70             - root: /var/www/arvados-workbench/current/public
71             - index:  index.html index.htm
72             - passenger_enabled: 'on'
73             # yamllint disable-line rule:line-length
74             - access_log: /var/log/nginx/workbench.__CLUSTER__.__DOMAIN__-upstream.access.log combined
75             - error_log: /var/log/nginx/workbench.__CLUSTER__.__DOMAIN__-upstream.error.log