Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Lelux.fi
Wiki
Commits
c6291431
Verified
Commit
c6291431
authored
Mar 10, 2019
by
Elias Ojala
Browse files
ssl-params.conf in a separate file
parent
2d42be79
Changes
3
Hide whitespace changes
Inline
Side-by-side
_includes/nginx/ssl-params.conf
0 → 100644
View file @
c6291431
# https://mozilla.github.io/server-side-tls/ssl-config-generator/?server=nginx-1.10.3&openssl=1.1.0f&hsts=yes&profile=modern
ssl_session_timeout
1
d
;
ssl_session_cache
shared
:
SSL
:
50
m
;
ssl_session_tickets
off
;
# modern configuration. tweak to your needs.
ssl_protocols
TLSv1
.
2
;
ssl_ciphers
'ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305:ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-SHA384:ECDHE-RSA-AES256-SHA384:ECDHE-ECDSA-AES128-SHA256:ECDHE-RSA-AES128-SHA256'
;
ssl_prefer_server_ciphers
on
;
# OCSP Stapling ---
# fetch OCSP records from URL in ssl_certificate and cache them
ssl_stapling
on
;
ssl_stapling_verify
on
;
resolver
1
.
1
.
1
.
1
1
.
0
.
0
.
1
valid
=
300
s
;
resolver_timeout
5
s
;
add_header
X
-
Content
-
Type
-
Options
nosniff
;
ssl_dhparam
/
etc
/
ssl
/
certs
/
dhparam
.
pem
;
# User-agent Blocklist
# https://wiki.lelux.fi/nginx#useragent-blocklist
#
#
include
snippets
/
useragent
-
blocklist
/
nginx
.
conf
;
\ No newline at end of file
certbot.md
View file @
c6291431
...
...
@@ -135,31 +135,5 @@ add_header Strict-Transport-Security "max-age=63072000";
filename:
`/etc/nginx/snippets/ssl-params.conf`
```
nginx
# https://mozilla.github.io/server-side-tls/ssl-config-generator/?server=nginx-1.10.3&openssl=1.1.0f&hsts=yes&profile=modern
ssl_session_timeout
1d
;
ssl_session_cache
shared:SSL:50m
;
ssl_session_tickets
off
;
# modern configuration. tweak to your needs.
ssl_protocols
TLSv1.2
;
ssl_ciphers
'ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305:ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-SHA384:ECDHE-RSA-AES256-SHA384:ECDHE-ECDSA-AES128-SHA256:ECDHE-RSA-AES128-SHA256'
;
ssl_prefer_server_ciphers
on
;
# OCSP Stapling ---
# fetch OCSP records from URL in ssl_certificate and cache them
ssl_stapling
on
;
ssl_stapling_verify
on
;
resolver
1
.1.1.1
1
.0.0.1
valid=300s
;
resolver_timeout
5s
;
add_header
X-Content-Type-Options
nosniff
;
ssl_dhparam
/etc/ssl/certs/dhparam.pem
;
# User-agent Blocklist
# https://wiki.lelux.fi/nginx#useragent-blocklist
#
# include snippets/useragent-blocklist/nginx.conf;
{
%
include
nginx/ssl-params
.conf
%
}
```
downloads/nginx
0 → 120000
View file @
c6291431
../_includes/nginx/
\ No newline at end of file
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