reverseproxy: prevent duplication of STS header

This commit is contained in:
Girish Ramakrishnan
2023-04-02 20:03:42 +02:00
parent 746d5fbf1e
commit cc811522e0
2 changed files with 2 additions and 0 deletions

View File

@@ -96,6 +96,7 @@ server {
ssl_dhparam /home/yellowtent/platformdata/dhparams.pem;
<% } -%>
proxy_hide_header Strict-Transport-Security;
<% if (hstsPreload) { -%>
# https://hstspreload.org/
add_header Strict-Transport-Security "max-age=63072000; includeSubDomains; preload";