Franziska Kunsmann
36c8b90c4b
Some checks failed
bundlewrap/pipeline/head There was a failure building this commit
25 lines
990 B
Text
25 lines
990 B
Text
server {
|
|
server_name ${domain};
|
|
root ${webroot if webroot else '/var/www/{}/'.format(domain)};
|
|
index ${index if index else 'index.html index.htm'};
|
|
|
|
listen 443 ssl http2;
|
|
listen [::]:443 ssl http2;
|
|
|
|
ssl_certificate /var/lib/dehydrated/certs/${domain}/fullchain.pem;
|
|
ssl_certificate_key /var/lib/dehydrated/certs/${domain}/privkey.pem;
|
|
ssl_dhparam /etc/ssl/certs/dhparam.pem;
|
|
ssl_protocols TLSv1.2 TLSv1.3;
|
|
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;
|
|
ssl_prefer_server_ciphers on;
|
|
ssl_session_cache shared:SSL:10m;
|
|
ssl_stapling on;
|
|
ssl_stapling_verify on;
|
|
|
|
add_header Strict-Transport-Security "max-age=31104000; preload";
|
|
add_header X-Frame-Options "DENY";
|
|
|
|
% if extras:
|
|
<%include file="extras/${node.name}/${domain}" />
|
|
% endif
|
|
}
|