Files
nginx-proxy-manager/rootfs/usr/local/nginx/conf/conf.d/include/hsts.conf
Zoey 3d7877a4a0 merge upstream
Signed-off-by: Zoey <zoey@z0ey.de>
2024-01-11 22:27:26 +01:00

12 lines
428 B
Plaintext

more_set_headers "X-XSS-Protection: 0";
more_set_headers "X-Frame-Options: SAMEORIGIN";
more_set_headers "X-Content-Type-Options: nosniff";
more_set_headers "Referrer-Policy: strict-origin-when-cross-origin";
more_set_headers "Content-Security-Policy: $content_security_policy";
map $scheme $hsts_header {
https "max-age=31536000; includeSubDomains; preload";
}
more_set_headers "Strict-Transport-Security: $hsts_header";