This commit is contained in:
parent
08f6ed421f
commit
caf60d32fb
2 changed files with 15 additions and 0 deletions
|
|
@ -15,9 +15,17 @@ in {
|
|||
recommendedProxySettings = true;
|
||||
recommendedBrotliSettings = true;
|
||||
|
||||
appendHttpConfig = ''
|
||||
add_header Content-Security-Policy "script-src 'self'; object-src 'none'; base-uri 'none';" always;
|
||||
add_header 'Referrer-Policy' 'origin-when-cross-origin';
|
||||
add_header X-Frame-Options DENY;
|
||||
add_header X-Content-Type-Options nosniff;
|
||||
'';
|
||||
|
||||
sslCiphers = "AES256+EECDH:AES256+EDH:!aNULL";
|
||||
|
||||
virtualHosts.${customDomain} = {
|
||||
default = true;
|
||||
root = "/var/www/${customDomain}";
|
||||
forceSSL = true;
|
||||
enableACME = true;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue