Merge pull request #454 from genebean/hsts_fix

Hsts fix
This commit is contained in:
Gene Liverman 2024-10-12 09:39:47 -04:00 committed by GitHub
commit 78e1b8a70e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 100 additions and 31 deletions

View file

@ -14,7 +14,7 @@ in {
# Add HSTS header with preloading to HTTPS requests.
# Adding this header to HTTP requests is discouraged
map $scheme $hsts_header {
https "max-age=31536000 always;";
https "max-age=31536000;";
}
add_header Strict-Transport-Security $hsts_header;
'';