aboutsummaryrefslogtreecommitdiffstats
path: root/roles/sky/templates/homepage.nginx.j2
blob: cf31da97c2ad268f71a4f83f9b9f976707d47b9e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# generated 2023-01-14, Mozilla Guideline v5.6, nginx 1.17.7, OpenSSL 1.1.1k, intermediate configuration
# https://ssl-config.mozilla.org/#server=nginx&version=1.17.7&config=intermediate&openssl=1.1.1k&guideline=5.6
server {
	listen *:443 ssl http2;
	listen [::]:443 ssl http2;
	server_name {{ domain_name }};

	ssl_certificate         /etc/letsencrypt/live/{{ domain_name }}/fullchain.pem;
	ssl_certificate_key     /etc/letsencrypt/live/{{ domain_name }}/privkey.pem;
	ssl_trusted_certificate /etc/letsencrypt/live/{{ domain_name }}/fullchain.pem;

	ssl_session_cache shared:SSL:50m;
	ssl_session_timeout 1d;
	ssl_session_tickets off;

	# HSTS (ngx_http_headers_module is required) (63072000 seconds)
	add_header Strict-Transport-Security "max-age=63072000" always;

	# OCSP stapling
	ssl_stapling on;
	ssl_stapling_verify on;

	root /home/homepage/homepage/build;

	location = / {
		try_files $uri /out.html;
	}
}