mirror of
https://gitlab.silvrtree.co.uk/martind2000/nginx-profiles.git
synced 2025-02-14 18:49:16 +00:00
31 lines
736 B
Plaintext
31 lines
736 B
Plaintext
upstream backend {
|
|
server 127.0.0.1:8031;
|
|
}
|
|
|
|
map $http_upgrade $connection_upgrade {
|
|
default upgrade;
|
|
'' close;
|
|
}
|
|
|
|
server {
|
|
listen 8039;
|
|
server_name ws.silvrtree.co.uk;
|
|
location / {
|
|
proxy_set_header X-Real-IP $remote_addr;
|
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
|
proxy_set_header Host $http_host;
|
|
proxy_set_header X-NginX-Proxy true;
|
|
|
|
proxy_pass http://localhost:8031/;
|
|
proxy_redirect off;
|
|
proxy_buffering off;
|
|
|
|
proxy_http_version 1.1;
|
|
proxy_set_header Upgrade $http_upgrade;
|
|
proxy_set_header Connection $connection_upgrade;
|
|
|
|
access_log off;
|
|
error_log /var/log/nginx/websockets.error.log;
|
|
}
|
|
}
|