1
0
Fork 0

Add nginx.conf file for CWG cmd template

refactor/models
Matthew 2019-10-26 00:03:49 -04:00
parent 70c7e3f698
commit 5badce06e3
No known key found for this signature in database
GPG Key ID: 766BE43AE75F7559
1 changed files with 40 additions and 0 deletions

40
src/static/nginx.conf Normal file
View File

@ -0,0 +1,40 @@
server {
listen 443 ssl http2;
listen [::]:443 ssl http2;
server_name [DOMAIN];
ssl_certificate [CERTIFICATE];
ssl_certificate_key [KEY];
ssl_session_cache builtin:1000 shared:SSL:10m;
include /etc/nginx/error/502;
include /etc/nginx/error/504;
include /etc/nginx/error/500;
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;
ssl_stapling on;
ssl_stapling_verify on;
limit_req zone=one burst=5;
location / {
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_pass http://localhost:[PORT];
proxy_read_timeout 90;
proxy_redirect http://localhost:[PORT] https://[DOMAIN];
}
}