Skip to content

Commit ca2a391

Browse files
committed
fix(nginx): fix nginx config;
1 parent 025dd39 commit ca2a391

File tree

2 files changed

+5
-21
lines changed

2 files changed

+5
-21
lines changed

packages/system-client/nginx.conf

+4-18
Original file line numberDiff line numberDiff line change
@@ -40,30 +40,16 @@ server {
4040
if ($host ~* "(\w{8}(-\w{4}){3}-\w{12})\.(.+)$") {
4141
set $appid $1;
4242
set $service_id app_$appid;
43-
proxy_pass http://$service_id:8000;
44-
add_header appid $appid;
45-
# proxy_set_header Host $host:$server_port;
46-
# proxy_set_header Host $host;
47-
# proxy_http_version 1.1;
48-
# proxy_set_header Upgrade $http_upgrade;
49-
# proxy_set_header Connection "upgrade";
50-
# proxy_read_timeout 6000s;
5143
}
52-
}
5344

54-
location /socket {
55-
resolver 127.0.0.11;
56-
if ($host ~* "(\w{8}(-\w{4}){3}-\w{12})\.(.+)$") {
57-
set $appid $1;
58-
set $service_id app_$appid;
59-
proxy_pass http://$service_id:8000/;
60-
# add_header appid $appid;
61-
}
45+
proxy_pass http://$service_id:8000;
46+
add_header appid $appid;
47+
proxy_read_timeout 600s;
48+
6249
proxy_set_header Host $host;
6350
proxy_http_version 1.1;
6451
proxy_set_header Upgrade $http_upgrade;
6552
proxy_set_header Connection "upgrade";
66-
proxy_read_timeout 6000s;
6753
}
6854

6955
location /deploy/incoming {

packages/system-client/src/components/FunctionEditor/types/websocket_type.js

+1-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11

2-
32
export const websocket_type = `
4-
53
// WebSocket socket.
64
declare class WebSocket extends EventEmitter {
75
/** The connection is not yet open. */
@@ -145,4 +143,4 @@ declare class WebSocket extends EventEmitter {
145143
): this;
146144
removeListener(event: string | symbol, listener: (...args: any[]) => void): this;
147145
}
148-
`
146+
`

0 commit comments

Comments
 (0)