28 lines
825 B
Nginx Configuration File
28 lines
825 B
Nginx Configuration File
server {
|
|
listen 80;
|
|
listen [::]:80;
|
|
server_name calls.intaleqapp.com;
|
|
|
|
# Redirection to HTTPS should be managed by CloudPanel/Nginx outer server block.
|
|
# This block configures proxying WebSocket signaling connections to the Go backend.
|
|
|
|
location / {
|
|
proxy_pass http://127.0.0.1:47880;
|
|
|
|
# WebSockets support
|
|
proxy_http_version 1.1;
|
|
proxy_set_header Upgrade $http_upgrade;
|
|
proxy_set_header Connection "upgrade";
|
|
|
|
# Forwarded headers
|
|
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;
|
|
|
|
# Connection timeout management
|
|
proxy_read_timeout 120s;
|
|
proxy_send_timeout 120s;
|
|
}
|
|
}
|