21383: Adds http_endpoint="enabled" to Terraform's ec2 instances code.
[arvados.git] / tools / salt-install / config_examples / multi_host / aws / pillars / nginx_snippets.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   ### SNIPPETS
9   snippets:
10     # Based on https://ssl-config.mozilla.org/#server=nginx&version=1.14.2&config=intermediate&openssl=1.1.1d&guideline=5.4
11     ssl_hardening_default.conf:
12       - ssl_session_timeout: 1d
13       - ssl_session_cache: 'shared:arvadosSSL:10m'
14       - ssl_session_tickets: 'off'
15
16       # intermediate configuration
17       - ssl_protocols: TLSv1.2 TLSv1.3
18       - 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
19       - ssl_prefer_server_ciphers: 'off'
20
21       # HSTS (ngx_http_headers_module is required) (63072000 seconds)
22       - add_header: 'Strict-Transport-Security "max-age=63072000" always'
23
24       # OCSP stapling
25       - ssl_stapling: 'on'
26       - ssl_stapling_verify: 'on'
27
28       # verify chain of trust of OCSP response using Root CA and Intermediate certs
29       # - ssl_trusted_certificate /path/to/root_CA_cert_plus_intermediates
30
31       # curl https://ssl-config.mozilla.org/ffdhe2048.txt > /path/to/dhparam
32       # - ssl_dhparam: /path/to/dhparam
33
34       # replace with the IP address of your resolver
35       # - resolver: 127.0.0.1