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
2f1e2b47
Unverified
Commit
2f1e2b47
authored
Nov 02, 2023
by
Jakub Skałecki
Committed by
GitHub
Nov 02, 2023
Browse files
Merge pull request #64 from siebo/fix-sts-header
update ssl.conf to use headers-more-nginx-module included with openresty
parents
7adab166
a0715ea9
Changes
1
Hide whitespace changes
Inline
Side-by-side
snippets/ssl.conf
View file @
2f1e2b47
...
...
@@ -13,6 +13,6 @@ ssl_protocols TLSv1.2 TLSv1.3;
ssl_ciphers
ECDHE
-
ECDSA
-
AES128
-
GCM
-
SHA256
:
ECDHE
-
RSA
-
AES128
-
GCM
-
SHA256
:
ECDHE
-
ECDSA
-
AES256
-
GCM
-
SHA384
:
ECDHE
-
RSA
-
AES256
-
GCM
-
SHA384
:
ECDHE
-
ECDSA
-
CHACHA20
-
POLY1305
:
ECDHE
-
RSA
-
CHACHA20
-
POLY1305
:
DHE
-
RSA
-
AES128
-
GCM
-
SHA256
:
DHE
-
RSA
-
AES256
-
GCM
-
SHA384
;
ssl_prefer_server_ciphers
on
;
# HSTS (
ngx_http_headers_module is required
) (15768000 seconds = 6 months)
# HSTS (
uses headers-more-nginx-module included with openresty
) (15768000 seconds = 6 months)
# uncomment if you are sure you'll never drop HTTPS support
#
add
_header Strict-Transport-Security max-age=15768000;
#
more_set
_header
s
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