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
a0715ea9
Commit
a0715ea9
authored
Oct 31, 2023
by
siebo
Browse files
update ssl.conf to use headers-more-nginx-module included with openresty
parent
7adab166
Changes
1
Show whitespace changes
Inline
Side-by-side
snippets/ssl.conf
View file @
a0715ea9
...
...
@@ -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