added all networks
parent
00ab82fef0
commit
bb3f2020b0
|
|
@ -11,4 +11,15 @@ location /ws {
|
||||||
allow 192.168.0.0/24;
|
allow 192.168.0.0/24;
|
||||||
allow 172.16.0.0/12;
|
allow 172.16.0.0/12;
|
||||||
deny all;
|
deny all;
|
||||||
|
}
|
||||||
|
|
||||||
|
location /ws {
|
||||||
|
proxy_pass http://10.0.0.10:8002/ws;
|
||||||
|
proxy_http_version 1.1;
|
||||||
|
proxy_set_header Upgrade $http_upgrade;
|
||||||
|
proxy_set_header Connection "upgrade";
|
||||||
|
proxy_set_header Host $host;
|
||||||
|
proxy_set_header X-Real-IP $remote_addr;
|
||||||
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||||
|
proxy_set_header X-Forwarded-Proto $scheme;
|
||||||
}
|
}
|
||||||
Loading…
Reference in New Issue