bundles/nginx: add deployment of vhost configs
This commit is contained in:
parent
dc9e8dc679
commit
c4330f866b
3 changed files with 54 additions and 0 deletions
25
bundles/nginx/files/site_template
Normal file
25
bundles/nginx/files/site_template
Normal file
|
@ -0,0 +1,25 @@
|
|||
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_protocols TLSv1 TLSv1.1 TLSv1.2;
|
||||
ssl_ciphers 'EECDH+AESGCM:EDH+AESGCM:AES256+EECDH:AES256+EDH';
|
||||
ssl_dhparam /etc/ssl/certs/dhparam.pem;
|
||||
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
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue