docs: add example ssl config

This commit is contained in:
Alessandro Pezzè 2021-03-23 19:11:18 +01:00
parent 21c959e87b
commit af8c80d422
2 changed files with 16 additions and 1 deletions

3
.gitignore vendored
View file

@ -8,4 +8,5 @@ venv*
node_modules
.vscode
.env
Resources/nginx/ssl/*
Resources/nginx/ssl/*
!Resources/nginx/ssl/*.sample.*

View file

@ -0,0 +1,14 @@
# Copy this file to ssl.conf, add certificate and private key to enable ssl
listen 443 ssl http2;
listen [::]:443 ssl http2;
ssl_certificate /ssl/cert.cer;
ssl_certificate_key /ssl/key.key;
ssl_session_timeout 1d;
ssl_session_cache shared:MozSSL:10m;
ssl_session_tickets off;
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 off;