|
|
@@ -30,13 +30,27 @@ http {
|
|
|
try_files $uri $uri/ /index.html;
|
|
|
index index.html index.htm;
|
|
|
}
|
|
|
+
|
|
|
+
|
|
|
+ location /prod-api/hubs {
|
|
|
+ proxy_pass http://adminNet:5050/hubs; #启用http长连接支持websocket
|
|
|
+ proxy_http_version 1.1;
|
|
|
+ proxy_set_header Upgrade $http_upgrade;
|
|
|
+ proxy_set_header Connection "upgrade";
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
location /prod-api/ {
|
|
|
+
|
|
|
proxy_set_header Host $http_host;
|
|
|
proxy_set_header X-Real-IP $remote_addr;
|
|
|
proxy_set_header REMOTE-HOST $remote_addr;
|
|
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
|
|
proxy_pass http://adminNet:5050/;
|
|
|
}
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
|
|
|
error_page 500 502 503 504 /50x.html;
|
|
|
location = /50x.html {
|