2016-10-04 09:32:47 +02:00
server {
2017-07-01 15:48:03 +02:00
listen ${NGINX_PORT} default_server;
2017-07-01 15:55:22 +02:00
listen ${NGINX_SSL_PORT} ssl default_server;
2016-10-04 09:32:47 +02:00
server_name ${NGINX_HOST};
ssl_certificate /etc/nginx/certs/req.pem;
ssl_certificate_key /etc/nginx/certs/cert.key;
ssl_protocols TLSv1 TLSv1.1 TLSv1.2; # don’ t use SSLv3 ref: POODLE
2017-04-07 12:13:43 +02:00
ssl_ciphers EECDH+ECDSA+AESGCM:EECDH+aRSA+AESGCM:EECDH+ECDSA+SHA512:EECDH+ECDSA+SHA384:EECDH+ECDSA+SHA256:ECDH+AESGCM:ECDH+AES256:DH+AESGCM:DH+AES256:RSA+AESGCM:!aNULL:!eNULL:!LOW:!RC4:!3DES:!MD5:!EXP:!PSK:!SRP:!DSS; # Logjam and co
2016-10-04 09:32:47 +02:00
ssl_prefer_server_ciphers on; # Logjam
ssl_dhparam /etc/nginx/certs/dhparams.pem; # Logjam
2017-09-14 10:23:47 +02:00
ssl_session_cache shared:TLS:10m;
2017-04-07 12:13:43 +02:00
# OCSP stapling
ssl_stapling on;
ssl_stapling_verify on;
resolver 8.8.8.8;
# Set HSTS to 365 days
add_header Strict-Transport-Security 'max-age=31536000; includeSubDomains';
2016-10-04 09:32:47 +02:00
client_max_body_size 200M;
location / {
root /var/www/html;
index index.html index.htm index.php;
}
}