Fix 2.4.2 upgrade notes formatting refs #19330
[arvados.git] / tools / salt-install / config_examples / multi_host / aws / pillars / nginx_collections_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   servers:
9     managed:
10       ### DEFAULT
11       arvados_collections_default.conf:
12         enabled: true
13         overwrite: true
14         config:
15           - server:
16             - server_name: '~^(.*\.)?collections\.__CLUSTER__\.__DOMAIN__'
17             - listen:
18               - 80
19             - location /:
20               - return: '301 https://$host$request_uri'
21
22       ### COLLECTIONS
23       arvados_collections_ssl.conf:
24         enabled: true
25         overwrite: true
26         requires:
27           __CERT_REQUIRES__
28         config:
29           - server:
30             - server_name: '~^(.*\.)?collections\.__CLUSTER__\.__DOMAIN__'
31             - listen:
32               - __KEEPWEB_EXT_SSL_PORT__ http2 ssl
33             - index: index.html index.htm
34             - location /:
35               - proxy_pass: 'http://collections_downloads_upstream'
36               - proxy_read_timeout: 90
37               - proxy_connect_timeout: 90
38               - proxy_redirect: 'off'
39               - proxy_set_header: X-Forwarded-Proto https
40               - proxy_set_header: 'Host $http_host'
41               - proxy_set_header: 'X-Real-IP $remote_addr'
42               - proxy_set_header: 'X-Forwarded-For $proxy_add_x_forwarded_for'
43               - proxy_buffering: 'off'
44             - client_max_body_size: 0
45             - proxy_http_version: '1.1'
46             - proxy_request_buffering: 'off'
47             - include: snippets/ssl_hardening_default.conf
48             - ssl_certificate: __CERT_PEM__
49             - ssl_certificate_key: __CERT_KEY__
50             - access_log: /var/log/nginx/collections.__CLUSTER__.__DOMAIN__.access.log combined
51             - error_log: /var/log/nginx/collections.__CLUSTER__.__DOMAIN__.error.log