added all networks

master
pipistrello 2025-03-07 11:22:17 +03:00
parent 00ab82fef0
commit bb3f2020b0
1 changed files with 11 additions and 0 deletions

View File

@ -11,4 +11,15 @@ location /ws {
allow 192.168.0.0/24;
allow 172.16.0.0/12;
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;
}