Skip to content

Commit 0f2c834

Browse files
committed
update nginx.conf files
1 parent cd7a5c8 commit 0f2c834

3 files changed

Lines changed: 4 additions & 3 deletions

File tree

config/web-server/nginx/gunicorn/nginx_conf/nginx.conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ http {
3232

3333
# add_header Strict-Transport-Security "max-age=31536000";
3434
# add_header Strict-Transport-Security "max-age=31536000" always;
35-
add_header Strict-Transport-Security "max-age=63072000; includeSubDomains; preload";
35+
add_header Strict-Transport-Security "max-age=63072000; includeSubDomains; preload" always;
3636
# your certs, I'm using let's encrypt domain wildcards.
3737

3838
add_header X-Frame-Options SAMEORIGIN;

config/web-server/nginx/php/nginx_conf/nginx.conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ http {
3232

3333
# add_header Strict-Transport-Security "max-age=31536000";
3434
# add_header Strict-Transport-Security "max-age=31536000" always;
35-
add_header Strict-Transport-Security "max-age=63072000; includeSubDomains; preload";
35+
add_header Strict-Transport-Security "max-age=63072000; includeSubDomains; preload" always;
3636
# your certs, I'm using let's encrypt domain wildcards.
3737

3838
add_header X-Frame-Options SAMEORIGIN;

config/web-server/nginx/uwsgi/nginx_conf/nginx.conf

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,8 @@ http {
3232

3333
# add_header Strict-Transport-Security "max-age=31536000";
3434
# add_header Strict-Transport-Security "max-age=31536000" always;
35-
add_header Strict-Transport-Security "max-age=63072000; includeSubDomains; preload";
35+
add_header Strict-Transport-Security "max-age=63072000; includeSubDomains; preload" always;
36+
3637
# your certs, I'm using let's encrypt domain wildcards.
3738

3839
add_header X-Frame-Options SAMEORIGIN;

0 commit comments

Comments
 (0)