forked from 6543/nginx_config
Compare commits
6 Commits
Author | SHA1 | Date | |
---|---|---|---|
d7d183fdf6
|
|||
3b66195deb
|
|||
c77fce86a8
|
|||
62d947ca70
|
|||
5ff7de70e7
|
|||
|
2c52a3e11a |
@@ -29,8 +29,7 @@ http {
|
||||
# SSL Settings
|
||||
##
|
||||
|
||||
ssl_protocols TLSv1 TLSv1.1 TLSv1.2; # Dropping SSLv3, ref: POODLE
|
||||
ssl_prefer_server_ciphers on;
|
||||
include /etc/nginx/snippets/ssl_options.conf;
|
||||
|
||||
##
|
||||
# Logging Settings
|
||||
|
@@ -8,11 +8,10 @@ server {
|
||||
server_name my.domain.com;
|
||||
|
||||
ssl_certificate /etc/letsencrypt/live/my.domain.com/fullchain.pem;
|
||||
ssl_certificate_key /etc/letsencrypt/live/my.domain.com/privkey.pem;
|
||||
include /etc/nginx/snippets/ssl_options.conf;
|
||||
ssl_certificate_key /etc/letsencrypt/live/my.domain.com/privkey.pem;
|
||||
|
||||
client_max_body_size 5M;
|
||||
client_body_buffer_size 256K;
|
||||
client_max_body_size 5M;
|
||||
client_body_buffer_size 256K;
|
||||
|
||||
sendfile on;
|
||||
send_timeout 600s;
|
||||
|
@@ -2,7 +2,7 @@ server {
|
||||
listen 80 default_server;
|
||||
listen [::]:80 default_server ipv6only=on;
|
||||
|
||||
server_name *.de ;
|
||||
server_name _ ;
|
||||
|
||||
include /etc/nginx/snippets/letsencrypt.conf;
|
||||
|
||||
|
@@ -9,7 +9,6 @@ server {
|
||||
|
||||
ssl_certificate /etc/letsencrypt/live/cloud.domain.com/fullchain.pem;
|
||||
ssl_certificate_key /etc/letsencrypt/live/cloud.domain.com/privkey.pem;
|
||||
include /etc/nginx/snippets/ssl_options.conf;
|
||||
|
||||
client_body_in_file_only clean;
|
||||
client_body_buffer_size 128K;
|
||||
|
@@ -1,15 +1,15 @@
|
||||
ssl_session_timeout 1d;
|
||||
ssl_session_cache shared:SSL:50m;
|
||||
ssl_session_cache shared:TLS:1m;
|
||||
ssl_session_tickets off;
|
||||
|
||||
ssl_protocols TLSv1.2 TLSv1.3;
|
||||
ssl_ciphers 'EECDH+AESGCM:EDH+AESGCM:AES256+EECDH:AES256+EDH';
|
||||
ssl_protocols TLSv1.3 TLSv1.2;
|
||||
ssl_ciphers 'EECDH+AESGCM:EECDH+AES256 !aNULL:!MD5';
|
||||
ssl_prefer_server_ciphers on;
|
||||
ssl_dhparam /etc/ssl/certs/dhparam.pem;
|
||||
|
||||
ssl_stapling on;
|
||||
ssl_stapling_verify on;
|
||||
|
||||
add_header Strict-Transport-Security "max-age=15768000; includeSubDomains" always;
|
||||
add_header Strict-Transport-Security "max-age=31536000; includeSubDomains; preload" always;
|
||||
add_header X-Frame-Options DENY;
|
||||
add_header X-Content-Type-Options nosniff;
|
||||
|
Reference in New Issue
Block a user