solve the websocket port problem

This commit is contained in:
Sebastian
2023-10-03 08:20:17 +02:00
parent bbb68ff7c4
commit b08e95f2ec
3 changed files with 53 additions and 33 deletions

View File

@@ -0,0 +1,17 @@
server {
listen 80;
server_name frontend;
location = / {
proxy_pass http://${PROXY_HOST}:${RPC_PORT};
}
location /ws {
proxy_pass http://${PROXY_HOST}:${WS_PORT};
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_set_header Host $http_host;
proxy_set_header X-Real-IP $remote_addr;
}
}