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