mirror of https://github.com/docusealco/docuseal
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
35 lines
1.2 KiB
35 lines
1.2 KiB
# Drop into /etc/nginx/sites-available/e-sign.360dmmc.com and symlink to sites-enabled.
|
|
# Assumes Let's Encrypt cert obtained separately (e.g. certbot --nginx -d e-sign.360dmmc.com)
|
|
# or terminate TLS at an upstream load balancer and run this server block on :80.
|
|
|
|
server {
|
|
listen 80;
|
|
listen [::]:80;
|
|
server_name e-sign.360dmmc.com;
|
|
return 301 https://$host$request_uri;
|
|
}
|
|
|
|
server {
|
|
listen 443 ssl http2;
|
|
listen [::]:443 ssl http2;
|
|
server_name e-sign.360dmmc.com;
|
|
|
|
ssl_certificate /etc/letsencrypt/live/e-sign.360dmmc.com/fullchain.pem;
|
|
ssl_certificate_key /etc/letsencrypt/live/e-sign.360dmmc.com/privkey.pem;
|
|
|
|
client_max_body_size 50m;
|
|
|
|
location / {
|
|
proxy_pass http://127.0.0.1:3000;
|
|
proxy_http_version 1.1;
|
|
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 https;
|
|
proxy_set_header Upgrade $http_upgrade;
|
|
proxy_set_header Connection "upgrade";
|
|
proxy_read_timeout 300s;
|
|
proxy_send_timeout 300s;
|
|
}
|
|
}
|