19126: disable all nginx proxy caching for controller in the templates used by the...
[arvados.git] / tools / salt-install / config_examples / single_host / multiple_hostnames / pillars / nginx_controller_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         'geo $external_client':
14           default: 1
15           '127.0.0.0/8': 0
16         upstream controller_upstream:
17           - server: 'controller.internal:8003  fail_timeout=10s'
18
19   ### SITES
20   servers:
21     managed:
22       ### DEFAULT
23       arvados_controller_default.conf:
24         enabled: true
25         overwrite: true
26         config:
27           - server:
28             - server_name: __CLUSTER__.__DOMAIN__
29             - listen:
30               - 80 default
31             - location /.well-known:
32               - root: /var/www
33             - location /:
34               - return: '301 https://$host$request_uri'
35
36       arvados_controller_ssl.conf:
37         enabled: true
38         overwrite: true
39         requires:
40           __CERT_REQUIRES__
41         config:
42           - server:
43             - server_name: __CLUSTER__.__DOMAIN__
44             - listen:
45               - __CONTROLLER_EXT_SSL_PORT__ http2 ssl
46             - index: index.html index.htm
47             - location /:
48               - proxy_pass: 'http://controller_upstream'
49               - proxy_read_timeout: 300
50               - proxy_connect_timeout: 90
51               - proxy_redirect: 'off'
52               - proxy_set_header: X-Forwarded-Proto https
53               - proxy_set_header: 'Host $http_host'
54               - proxy_set_header: 'X-Real-IP $remote_addr'
55               - proxy_set_header: 'X-Forwarded-For $proxy_add_x_forwarded_for'
56               - proxy_set_header: 'X-External-Client $external_client'
57               - proxy_max_temp_file_size: 0
58               - proxy_request_buffering: 'off'
59               - proxy_buffering: 'off'
60               - proxy_http_version: '1.1'
61             - include: snippets/ssl_hardening_default.conf
62             - ssl_certificate: __CERT_PEM__
63             - ssl_certificate_key: __CERT_KEY__
64             - access_log: /var/log/nginx/controller.__CLUSTER__.__DOMAIN__.access.log combined
65             - error_log: /var/log/nginx/controller.__CLUSTER__.__DOMAIN__.error.log
66             - client_max_body_size: 128m