5a4f2492107aeb3a578fbfada9df626c6f46649d
[arvados.git] / tools / salt-install / config_examples / single_host / single_hostname / pillars / nginx_keepproxy_configuration.sls
1 ---
2 # Copyright (C) The Arvados Authors. All rights reserved.
3 #
4 # SPDX-License-Identifier: AGPL-3.0
5
6 ### NGINX
7 nginx:
8   ### SERVER
9   server:
10     config:
11       ### STREAMS
12       http:
13         upstream keepproxy_upstream:
14           - server: '__IP_INT__:25100 fail_timeout=10s'
15
16   servers:
17     managed:
18       arvados_keepproxy_ssl:
19         enabled: true
20         overwrite: true
21         config:
22           - server:
23             - server_name: __HOSTNAME_EXT__
24             - listen:
25               - __KEEP_EXT_SSL_PORT__ http2 ssl
26             - index: index.html index.htm
27             - location /:
28               - proxy_pass: 'http://keepproxy_upstream'
29               - proxy_read_timeout: 90
30               - proxy_connect_timeout: 90
31               - proxy_redirect: 'off'
32               - proxy_set_header: X-Forwarded-Proto https
33               - proxy_set_header: 'Host $http_host'
34               - proxy_set_header: 'X-Real-IP $remote_addr'
35               - proxy_set_header: 'X-Forwarded-For $proxy_add_x_forwarded_for'
36               - proxy_buffering: 'off'
37             - client_body_buffer_size: 64M
38             - client_max_body_size: 64M
39             - proxy_http_version: '1.1'
40             - proxy_request_buffering: 'off'
41             - include: 'snippets/arvados-snakeoil.conf'
42             - access_log: /var/log/nginx/keepproxy.__CLUSTER__.__DOMAIN__.access.log combined
43             - error_log: /var/log/nginx/keepproxy.__CLUSTER__.__DOMAIN__.error.log