|
|
|
@ -27,27 +27,22 @@ http {
|
|
|
|
|
server_name localhost;
|
|
|
|
|
|
|
|
|
|
location / {
|
|
|
|
|
root "D:\1.0\ZHXY\publish\src\linux-x64\publish\apps\www";
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
location ^~ /UserCenter/ {
|
|
|
|
|
proxy_pass http://localhost:5000/UserCenter/;
|
|
|
|
|
root ../../publish/src/linux-x64/publish/apps/www;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
location ^~ /IoTCenter/hub {
|
|
|
|
|
proxy_pass http://localhost:5000/IoTCenter/hub/;
|
|
|
|
|
proxy_http_version 1.1;
|
|
|
|
|
proxy_set_header Upgrade $http_upgrade;
|
|
|
|
|
proxy_set_header Connection "upgrade";
|
|
|
|
|
proxy_read_timeout 86400;
|
|
|
|
|
proxy_set_header Upgrade $http_upgrade;
|
|
|
|
|
proxy_set_header Connection "upgrade";
|
|
|
|
|
proxy_set_header Host $host;
|
|
|
|
|
proxy_cache_bypass $http_upgrade;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
location ^~ /IoTCenter/ {
|
|
|
|
|
proxy_pass http://localhost:5000/IoTCenter/;
|
|
|
|
|
location ~* /(UserCenter|IoTCenter)/ {
|
|
|
|
|
proxy_pass http://localhost:5000;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
error_page 500 502 503 504 /50x.html;
|
|
|
|
|
location = /50x.html {
|
|
|
|
|
root html;
|
|
|
|
|