|
|
@ -16,6 +16,11 @@ http {
|
|
|
|
sendfile on;
|
|
|
|
sendfile on;
|
|
|
|
keepalive_timeout 65;
|
|
|
|
keepalive_timeout 65;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
map $http_upgrade $connection_upgrade {
|
|
|
|
|
|
|
|
default upgrade;
|
|
|
|
|
|
|
|
'' close;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
server {
|
|
|
|
server {
|
|
|
|
listen 0.0.0.0:81;
|
|
|
|
listen 0.0.0.0:81;
|
|
|
|
server_name localhost;
|
|
|
|
server_name localhost;
|
|
|
@ -58,18 +63,12 @@ http {
|
|
|
|
|
|
|
|
|
|
|
|
location ^~ /platform/ {
|
|
|
|
location ^~ /platform/ {
|
|
|
|
proxy_pass http://platform/platform/;
|
|
|
|
proxy_pass http://platform/platform/;
|
|
|
|
}
|
|
|
|
if ($http_upgrade ~* "close") {
|
|
|
|
|
|
|
|
break;
|
|
|
|
location ^~ /platform/hub {
|
|
|
|
}
|
|
|
|
proxy_pass http://platform/platform/hub;
|
|
|
|
|
|
|
|
proxy_http_version 1.1;
|
|
|
|
proxy_http_version 1.1;
|
|
|
|
proxy_set_header Upgrade $http_upgrade;
|
|
|
|
proxy_set_header Upgrade $http_upgrade;
|
|
|
|
proxy_set_header Connection "upgrade";
|
|
|
|
proxy_set_header Connection "upgrade";
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
error_page 500 502 503 504 /50x.html;
|
|
|
|
|
|
|
|
location = /50x.html {
|
|
|
|
|
|
|
|
root html;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|