web socket
This commit is contained in:
parent
654789f44d
commit
b051047707
1 changed files with 21 additions and 16 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue