docs(examples): improve consistency in naming
[arvados-formula.git] / test / salt / pillar / examples / nginx_keepweb_configuration.sls
1 ---
2 ### NGINX
3 nginx:
4   ### SERVER
5   server:
6     config:
7       ### STREAMS
8       http:
9         upstream collections_downloads_upstream:
10           - server: '127.0.0.2:9002 fail_timeout=10s'
11
12   servers:
13     managed:
14       ### DEFAULT
15       arvados_collections_download_default:
16         enabled: true
17         overwrite: true
18         config:
19           - server:
20             - server_name: collections.fixme.example.net download.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       ### COLLECTIONS / DOWNLOAD
29       arvados_collections_download_ssl:
30         enabled: true
31         overwrite: true
32         config:
33           - server:
34             - server_name: collections.fixme.example.net download.fixme.example.net
35             - listen:
36               - 443 http2 ssl
37             - index: index.html index.htm
38             - location /:
39               - proxy_pass: 'http://collections_downloads_upstream'
40               - proxy_read_timeout: 90
41               - proxy_connect_timeout: 90
42               - proxy_redirect: 'off'
43               - proxy_set_header: X-Forwarded-Proto https
44               - proxy_set_header: 'Host $http_host'
45               - proxy_set_header: 'X-Real-IP $remote_addr'
46               - proxy_set_header: 'X-Forwarded-For $proxy_add_x_forwarded_for'
47               - proxy_buffering: 'off'
48             - client_max_body_size: 0
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/collections.fixme.example.net.access.log combined
54             - error_log: /var/log/nginx/collections.fixme.example.net.error.log