web socket

This commit is contained in:
Gabriel Peron 2025-03-03 00:33:02 +01:00
parent 654789f44d
commit b051047707

View file

@ -1,35 +1,40 @@
server {
listen 564 ;
listen 564 ssl;
server_name kvm.nazuna.ovh;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection upgrade;
proxy_read_timeout 3600;
proxy_send_timeout 3600;
proxy_connect_timeout 3600;
send_timeout 3600;
ssl_certificate /root/certs/pve-sto/cert.pem;
ssl_certificate_key /root/certs/pve-sto/key.pem;
location /sto {
proxy_pass https://192.168.2.179:8006;
proxy_set_header Host $proxy_host;
location /sto/ {
proxy_pass https://192.168.2.179:8006/;
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;
proxy_ssl_verify off;
}
location /main {
proxy_pass https://192.168.2.178:8006;
proxy_set_header Host $proxy_host;
location /main/ {
proxy_pass https://192.168.2.178:8006/;
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;
proxy_ssl_verify off;
}
location /pbs {
proxy_pass https://192.168.2.180:8007;
proxy_set_header Host $proxy_host;
location /pbs/ {
proxy_pass https://192.168.2.180:8007/;
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;