Skip to content

Commit a5d6b96

Browse files
committed
fix: restore configs
1 parent cf5d140 commit a5d6b96

File tree

1 file changed

+3
-8
lines changed

1 file changed

+3
-8
lines changed

beta_.conf

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,19 +3,14 @@ server {
33
server_name localhost;
44

55
set $WS_BACKEND_URL ws://localhost:4000;
6-
set $HTTP_BACKEND_URL http://localhost:4000;
76

87
location / {
98
root /usr/share/nginx/html;
109
index index.html index.htm;
1110
try_files $uri /index.html;
12-
13-
set $backend $HTTP_BACKEND_URL;
14-
15-
if ($http_upgrade = 'websocket') {
16-
set $backend $WS_BACKEND_URL;
17-
}
18-
proxy_pass $backend;
11+
}
12+
location /ws {
13+
proxy_pass $WS_BACKEND_URL;
1914
proxy_http_version 1.1;
2015
proxy_set_header Upgrade $http_upgrade;
2116
proxy_set_header Connection "Upgrade";

0 commit comments

Comments
 (0)