Former-commit-id: d416902372a66beeec8d2b17ab726571a737d28c
Former-commit-id: 5d58f219ef36f808e448103ad52d49f5d9ca0dac
TSXN
wanggang 5 years ago
parent acb0280fd0
commit 8f115d404d

@ -68,23 +68,26 @@ http {
proxy_pass http://172.172.0.60:8080/;
}
location ^~ /UserCenter/ {
proxy_pass http://172.172.0.70/UserCenter/;
}
location ^~ /IoTCenter/ {
proxy_pass http://172.172.0.80/IoTCenter/;
proxy_pass http://172.172.0.80/Platform/;
}
location ^~ /IoTCenter/hub {
proxy_pass http://172.172.0.80/IoTCenter/hub;
proxy_pass http://172.172.0.80/Platform/hub;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
}
location ^~ /JobServer/ {
proxy_pass http://172.172.0.90/JobServer/;
location ^~ /platform/ {
proxy_pass http://172.172.0.80/Platform/;
}
location ^~ /platform/hub {
proxy_pass http://172.172.0.80/Platform/hub;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
}
error_page 500 502 503 504 /50x.html;

@ -36,7 +36,7 @@ http {
index index.html;
}
location ~* ^/(dfs|live|video|influxdb|UserCenter|IoTCenter|JobServer|portainer|minio|mysqlui|influxui|phpredisadmin|srs)/ {
location ~* ^/(IoTCenter|platform|dfs|live|video|influxdb|portainer|minio|mysqlui|influxui|phpredisadmin|srs)/ {
proxy_pass http://gateway;
}
@ -47,6 +47,13 @@ http {
proxy_set_header Connection "upgrade";
}
location ^~ /platform/hub {
proxy_pass http://gateway;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
}
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root html;

Loading…
Cancel
Save