Merge branch '17566-max-request-size'
[arvados.git] / tools / salt-install / config_examples / multi_host / aws / pillars / nginx_passenger.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   install_from_phusionpassenger: true
9   lookup:
10     passenger_package: libnginx-mod-http-passenger
11     passenger_config_file: /etc/nginx/conf.d/mod-http-passenger.conf
12
13   ### SNIPPETS
14   snippets:
15     # Based on https://ssl-config.mozilla.org/#server=nginx&version=1.14.2&config=intermediate&openssl=1.1.1d&guideline=5.4
16     ssl_hardening_default.conf:
17       - ssl_session_timeout: 1d
18       - ssl_session_cache: 'shared:arvadosSSL:10m'
19       - ssl_session_tickets: 'off'
20
21       # intermediate configuration
22       - ssl_protocols: TLSv1.2 TLSv1.3
23       - ssl_ciphers: ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305:DHE-RSA-AES128-GCM-SHA256:DHE-RSA-AES256-GCM-SHA384
24       - ssl_prefer_server_ciphers: 'off'
25
26       # HSTS (ngx_http_headers_module is required) (63072000 seconds)
27       - add_header: 'Strict-Transport-Security "max-age=63072000" always'
28
29       # OCSP stapling
30       - ssl_stapling: 'on'
31       - ssl_stapling_verify: 'on'
32
33       # verify chain of trust of OCSP response using Root CA and Intermediate certs
34       # - ssl_trusted_certificate /path/to/root_CA_cert_plus_intermediates
35
36       # curl https://ssl-config.mozilla.org/ffdhe2048.txt > /path/to/dhparam
37       # - ssl_dhparam: /path/to/dhparam
38
39       # replace with the IP address of your resolver
40       # - resolver: 127.0.0.1
41
42   ### SERVER
43   server:
44     config:
45       include: 'modules-enabled/*.conf'
46       worker_processes: 4
47
48   ### SITES
49   servers:
50     managed:
51       # Remove default webserver
52       default:
53         enabled: false