28 lines
965 B
Nginx Configuration File
28 lines
965 B
Nginx Configuration File
server {
|
|
listen 80;
|
|
listen [::]:80;
|
|
server_name admin.zoomstage.online;
|
|
location ^~ /.well-known/acme-challenge/ { root /var/www/letsencrypt; }
|
|
location / { return 301 https://$host$request_uri; }
|
|
}
|
|
|
|
server {
|
|
listen 443 ssl http2;
|
|
listen [::]:443 ssl http2;
|
|
server_name admin.zoomstage.online;
|
|
ssl_certificate /etc/letsencrypt/live/admin.zoomstage.online/fullchain.pem;
|
|
ssl_certificate_key /etc/letsencrypt/live/admin.zoomstage.online/privkey.pem;
|
|
ssl_protocols TLSv1.2 TLSv1.3;
|
|
client_max_body_size 130m;
|
|
add_header Strict-Transport-Security "max-age=31536000" always;
|
|
location / {
|
|
proxy_pass http://127.0.0.1:18084;
|
|
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_connect_timeout 10s;
|
|
proxy_read_timeout 120s;
|
|
}
|
|
}
|