Minor additions to nginx.conf
This commit is contained in:
parent
dc8778f6a3
commit
4863763c02
@ -12,6 +12,10 @@ upstream pgCli {
|
|||||||
server {{ virtual_ip }}:3000;
|
server {{ virtual_ip }}:3000;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
upstream pgMW {
|
||||||
|
server 127.0.0.1:4000;
|
||||||
|
}
|
||||||
|
|
||||||
map $http_upgrade $connection_upgrade {
|
map $http_upgrade $connection_upgrade {
|
||||||
default upgrade;
|
default upgrade;
|
||||||
'' close;
|
'' close;
|
||||||
@ -58,6 +62,19 @@ server {
|
|||||||
proxy_set_header Host $host;
|
proxy_set_header Host $host;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
location /mwv0 {
|
||||||
|
proxy_pass http://pgMW;
|
||||||
|
proxy_redirect off;
|
||||||
|
proxy_http_version 1.1;
|
||||||
|
proxy_set_header Upgrade $http_upgrade;
|
||||||
|
proxy_set_header Connection "upgrade";
|
||||||
|
proxy_set_header Host $host;
|
||||||
|
}
|
||||||
|
|
||||||
|
location /cloudApex/ {
|
||||||
|
index index.html;
|
||||||
|
}
|
||||||
|
|
||||||
location /vtap/ {
|
location /vtap/ {
|
||||||
alias /opt/pg/vtap;
|
alias /opt/pg/vtap;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user