21700: Install Bundler system-wide in Rails postinst
[arvados.git] / tools / salt-install / config_examples / single_host / multiple_hostnames / pillars / nginx_keepweb_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   ### SERVER
9   server:
10     config:
11       ### STREAMS
12       http:
13         upstream collections_downloads_upstream:
14           - server: 'collections.internal:9002 fail_timeout=10s'
15
16   servers:
17     managed:
18       ### DEFAULT
19       arvados_collections_download_default.conf:
20         enabled: true
21         overwrite: true
22         config:
23           - server:
24             - server_name: collections.__CLUSTER__.__DOMAIN__ download.__CLUSTER__.__DOMAIN__
25             - listen:
26               - 80
27             - location /.well-known:
28               - root: /var/www
29             - location /:
30               - return: '301 https://$host$request_uri'
31
32       ### COLLECTIONS / DOWNLOAD
33       {%- for vh in [
34         'collections',
35         'download'
36         ]
37       %}
38       arvados_{{ vh }}.conf:
39         enabled: true
40         overwrite: true
41         requires:
42           file: extra_custom_certs_{{ vh }}_cert_file_copy
43         config:
44           - server:
45             - server_name: {{ vh }}.__CLUSTER__.__DOMAIN__
46             - listen:
47               - __CONTROLLER_EXT_SSL_PORT__ http2 ssl
48             - index: index.html index.htm
49             - location /:
50               - proxy_pass: 'http://collections_downloads_upstream'
51               - proxy_read_timeout: 90
52               - proxy_connect_timeout: 90
53               - proxy_redirect: 'off'
54               - proxy_set_header: X-Forwarded-Proto https
55               - proxy_set_header: 'Host $http_host'
56               - proxy_set_header: 'X-Real-IP $remote_addr'
57               - proxy_set_header: 'X-Forwarded-For $proxy_add_x_forwarded_for'
58               - proxy_buffering: 'off'
59             - client_max_body_size: 0
60             - proxy_http_version: '1.1'
61             - proxy_request_buffering: 'off'
62             - include: snippets/ssl_hardening_default.conf
63             - ssl_certificate: /etc/nginx/ssl/arvados-{{ vh }}.pem
64             - ssl_certificate_key: /etc/nginx/ssl/arvados-{{ vh }}.key
65             - access_log: /var/log/nginx/{{ vh }}.__CLUSTER__.__DOMAIN__.access.log combined
66             - error_log: /var/log/nginx/{{ vh }}.__CLUSTER__.__DOMAIN__.error.log
67       {%- endfor %}