ci(pre-commit): finalise `rstcheck` configuration [skip ci]
[arvados-formula.git] / test / salt / pillar / examples / nginx_keepweb_configuration.sls
1 ---
2 {% set nginx_log = '/var/log/nginx' %}
3
4 ### NGINX
5 nginx:
6   ### SERVER
7   server:
8     config:
9       ### STREAMS
10       http:
11         upstream collections_downloads_upstream:
12           - server: '127.0.0.1:9002 fail_timeout=10s'
13
14   servers:
15     managed:
16       ### DEFAULT
17       arvados_collections_default:
18         enabled: true
19         overwrite: true
20         config:
21           - server:
22             - server_name: collections.example.net download.example.net
23             - listen:
24               - 80
25             - location /.well-known:
26               - root: /var/www
27             - location /:
28               - return: '301 https://$host$request_uri'
29
30       ### COLLECTIONS / DOWNLOAD
31       arvados_collections_downloads:
32         enabled: true
33         overwrite: true
34         config:
35           - server:
36             - server_name: collections.example.net download.example.net
37             - listen:
38               - 443 http2 ssl
39             - index: index.html index.htm
40             - location /:
41               - proxy_pass: 'http://collections_downloads_upstream'
42               - proxy_read_timeout: 90
43               - proxy_connect_timeout: 90
44               - proxy_redirect: 'off'
45               - proxy_set_header: X-Forwarded-Proto https
46               - proxy_set_header: 'Host $http_host'
47               - proxy_set_header: 'X-Real-IP $remote_addr'
48               - proxy_set_header: 'X-Forwarded-For $proxy_add_x_forwarded_for'
49               - proxy_buffering: 'off'
50             - client_max_body_size: 0
51             - proxy_http_version: '1.1'
52             - proxy_request_buffering: 'off'
53             # - include: 'snippets/letsencrypt.conf'
54             - include: 'snippets/snakeoil.conf'
55             - access_log: {{ nginx_log }}/collections.example.net.access.log combined
56             - error_log: {{ nginx_log }}/collections.example.net.error.log