This commit is contained in:
Gabriel Peron 2025-03-03 00:40:23 +01:00
parent 46af26886e
commit 4bff8a0ec0

View file

@ -1,35 +1,46 @@
server {
listen 564 ;
server_name web.srv;
listen 8005 ssl;
server_name pve-sto.nazuna.ovh;
ssl_certificate /root/certs/pve-sto/cert.pem;
ssl_certificate_key /root/certs/pve-sto/key.pem;
location /pbs/ {
proxy_pass https://192.168.2.180:8007/;
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 https;
proxy_http_version 1.1;
proxy_buffering off;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_ssl_verify off; # Disable SSL verification
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "Upgrade";
# WebSockets support
proxy_set_header Connection 'upgrade';
proxy_read_timeout 3600;
}
# Fix Web UI assets loading
location /pbs/css/ {
proxy_pass https://192.168.2.180:8007/css/;
}
location /pbs/js/ {
proxy_pass https://192.168.2.180:8007/js/;
}
location /pbs/images/ {
proxy_pass https://192.168.2.180:8007/images/;
location /main/ {
proxy_pass https://192.168.2.178:8006/;
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;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection 'upgrade';
proxy_read_timeout 3600;
}
error_log /var/log/nginx/pbs_error.log;
access_log /var/log/nginx/pbs_access.log;
location /sto/ {
proxy_pass https://192.168.2.179:8006/;
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;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection 'upgrade';
proxy_read_timeout 3600;
}
}