17750: Update nginx/ssl example pillars and states
[arvados-formula.git] / test / salt / pillar / examples / nginx_keepproxy_configuration.sls
1 ---
2 # Copyright (C) The Arvados Authors. All rights reserved.
3 #
4 # SPDX-License-Identifier: Apache-2.0
5
6 ### NGINX
7 nginx:
8   ### SERVER
9   server:
10     config:
11       ### STREAMS
12       http:
13         upstream keepproxy_upstream:
14           - server: 'keep.internal:25100 fail_timeout=10s'
15
16   servers:
17     managed:
18       ### DEFAULT
19       arvados_keepproxy_default.conf:
20         enabled: true
21         overwrite: true
22         config:
23           - server:
24             - server_name: keep.fixme.example.net
25             - listen:
26               - 80
27             - location /.well-known:
28               - root: /var/www
29             - location /:
30               - return: '301 https://$host$request_uri'
31
32       arvados_keepproxy_ssl.conf:
33         enabled: true
34         overwrite: true
35         requires:
36           file: nginx_snippet_arvados-snakeoil.conf
37         config:
38           - server:
39             - server_name: keep.fixme.example.net
40             - listen:
41               - 443 http2 ssl
42             - index: index.html index.htm
43             - location /:
44               - proxy_pass: 'http://keepproxy_upstream'
45               - proxy_read_timeout: 90
46               - proxy_connect_timeout: 90
47               - proxy_redirect: 'off'
48               - proxy_set_header: X-Forwarded-Proto https
49               - proxy_set_header: 'Host $http_host'
50               - proxy_set_header: 'X-Real-IP $remote_addr'
51               - proxy_set_header: 'X-Forwarded-For $proxy_add_x_forwarded_for'
52               - proxy_buffering: 'off'
53             - client_body_buffer_size: 64M
54             - client_max_body_size: 64M
55             - proxy_http_version: '1.1'
56             - proxy_request_buffering: 'off'
57             - include: 'snippets/ssl_hardening_default.conf'
58             - include: 'snippets/arvados-snakeoil.conf'
59             - access_log: /var/log/nginx/keepproxy.fixme.example.net.access.log combined
60             - error_log: /var/log/nginx/keepproxy.fixme.example.net.error.log