Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
Docker Nginx Auto Ssl
Commits
538bf902
Unverified
Commit
538bf902
authored
Dec 02, 2017
by
Jakub Skałecki
Committed by
GitHub
Dec 02, 2017
Browse files
Make HSTS optional
parent
0079d55a
Changes
1
Show whitespace changes
Inline
Side-by-side
snippets/ssl.conf
View file @
538bf902
...
@@ -14,4 +14,5 @@ ssl_ciphers 'ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305:ECDHE-ECD
...
@@ -14,4 +14,5 @@ ssl_ciphers 'ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305:ECDHE-ECD
ssl_prefer_server_ciphers
on
;
ssl_prefer_server_ciphers
on
;
# HSTS (ngx_http_headers_module is required) (15768000 seconds = 6 months)
# HSTS (ngx_http_headers_module is required) (15768000 seconds = 6 months)
add_header
Strict
-
Transport
-
Security
max
-
age
=
15768000
;
# uncomment if you are sure you'll never drop HTTPS support
# add_header Strict-Transport-Security max-age=15768000;
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment