Skip to content

Commit

Permalink
Disable HSTS in nginx config by default.
Browse files Browse the repository at this point in the history
Unfortunately, it's just not feasible to to enforce strict HTTPS
domain-wide with a seedbox. While most swizzin apps are all configured to be proxied through SSL, not all applications have good/working proxy configurations (e.g. btsync). HSTS will unfortunately override legitmate http requests with https once the header has been set by the client, even if the service isn't proxied by nginx.

You are welcome to comment out the line yourself in your configuration;
however as a default, we will have to make do without it.
  • Loading branch information
liaralabs committed Sep 22, 2017
1 parent 5802319 commit 5f9af8d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/install/nginx.sh
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ resolver_timeout 5s;
# the "preload" directive if you understand the implications.
#add_header Strict-Transport-Security "max-age=63072000; includeSubdomains; preload";
add_header Strict-Transport-Security "max-age=63072000; includeSubdomains";
#add_header Strict-Transport-Security "max-age=63072000; includeSubdomains";
#add_header X-Frame-Options DENY;
add_header X-Frame-Options SAMEORIGIN;
add_header X-Content-Type-Options nosniff;
Expand Down

0 comments on commit 5f9af8d

Please sign in to comment.