This commit is contained in:
parent
72340afbfa
commit
8bfe367ff4
2 changed files with 11 additions and 5 deletions
|
|
@ -21,6 +21,17 @@ in {
|
|||
|
||||
sslCiphers = "AES256+EECDH:AES256+EDH:!aNULL";
|
||||
|
||||
appendHttpConfig = ''
|
||||
map $scheme $hsts_header {
|
||||
https "max-age=31536000; includeSubdomains; preload";
|
||||
}
|
||||
add_header Strict-Transport-Security $hsts_header;
|
||||
add_header Content-Security-Policy "default-src 'none'";
|
||||
add_header 'Referrer-Policy' 'origin-when-cross-origin';
|
||||
add_header X-Frame-Options DENY;
|
||||
add_header X-Content-Type-Options nosniff;
|
||||
'';
|
||||
|
||||
virtualHosts.${customDomain} = {
|
||||
default = true;
|
||||
root = "/var/www/${customDomain}";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue