This commit is contained in:
parent
30057712d2
commit
754db685e5
1 changed files with 6 additions and 2 deletions
|
|
@ -28,17 +28,21 @@ in {
|
|||
recommendedProxySettings = true;
|
||||
recommendedBrotliSettings = true;
|
||||
|
||||
sslCiphers = "AES256+EECDH:AES256+EDH:!aNULL";
|
||||
sslCiphers = "EECDH+AESGCM:EECDH+CHACHA20:EDH+AESGCM:EDH+CHACHA20:AES256+EECDH:AES256+EDH:!aNULL";
|
||||
appendConfig = ''
|
||||
ssl_prefer_server_ciphers on;
|
||||
'';
|
||||
|
||||
appendHttpConfig = ''
|
||||
map $scheme $hsts_header {
|
||||
https "max-age=31536000; includeSubdomains; preload";
|
||||
}
|
||||
more_set_headers 'Strict-Transport-Security: $hsts_header';
|
||||
more_set_headers 'Content-Security-Policy: default-src "self" *';
|
||||
more_set_headers 'Content-Security-Policy: upgrade-insecure-requests';
|
||||
more_set_headers 'Referrer-Policy: origin-when-cross-origin';
|
||||
more_set_headers 'X-Frame-Options: DENY';
|
||||
more_set_headers 'X-Content-Type-Options: nosniff';
|
||||
more_set_headers 'X-XSS-Protection: 0';
|
||||
'';
|
||||
|
||||
virtualHosts.${customDomain} = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue