Skip to content

Commit

Permalink
fix(nginx): fix nginx config;
Browse files Browse the repository at this point in the history
  • Loading branch information
maslow committed Nov 9, 2021
1 parent 025dd39 commit ca2a391
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 21 deletions.
22 changes: 4 additions & 18 deletions packages/system-client/nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -40,30 +40,16 @@ server {
if ($host ~* "(\w{8}(-\w{4}){3}-\w{12})\.(.+)$") {
set $appid $1;
set $service_id app_$appid;
proxy_pass http://$service_id:8000;
add_header appid $appid;
# proxy_set_header Host $host:$server_port;
# proxy_set_header Host $host;
# proxy_http_version 1.1;
# proxy_set_header Upgrade $http_upgrade;
# proxy_set_header Connection "upgrade";
# proxy_read_timeout 6000s;
}
}

location /socket {
resolver 127.0.0.11;
if ($host ~* "(\w{8}(-\w{4}){3}-\w{12})\.(.+)$") {
set $appid $1;
set $service_id app_$appid;
proxy_pass http://$service_id:8000/;
# add_header appid $appid;
}
proxy_pass http://$service_id:8000;
add_header appid $appid;
proxy_read_timeout 600s;

proxy_set_header Host $host;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_read_timeout 6000s;
}

location /deploy/incoming {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@


export const websocket_type = `
// WebSocket socket.
declare class WebSocket extends EventEmitter {
/** The connection is not yet open. */
Expand Down Expand Up @@ -145,4 +143,4 @@ declare class WebSocket extends EventEmitter {
): this;
removeListener(event: string | symbol, listener: (...args: any[]) => void): this;
}
`
`

0 comments on commit ca2a391

Please sign in to comment.