Compare commits

...

8 commits

Author SHA1 Message Date
47fd11195d hmm 2025-03-03 00:50:38 +01:00
b687cc994b tje pas sur mais tkt 2025-03-03 00:48:49 +01:00
3a6a19d391 pas sur 2025-03-03 00:46:22 +01:00
778b6e0768 hmm 2025-03-03 00:44:34 +01:00
4bff8a0ec0 pt 2025-03-03 00:40:23 +01:00
46af26886e test pbs no ssl 2025-03-03 00:38:00 +01:00
562837f284 hmm 2025-03-03 00:36:00 +01:00
b051047707 web socket 2025-03-03 00:33:02 +01:00

View file

@ -1,38 +1,53 @@
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 configuration
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;
# Main Proxmox VE location (e.g., Proxmox VE 1)
location /main/ {
rewrite ^/main/(.*) /$1 break;
proxy_pass https://192.168.2.180: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;
}
location /main {
proxy_pass https://192.168.2.178:8006;
proxy_set_header Host $proxy_host;
# Proxmox Backup Server location (e.g., PBS)
location /pbs/ {
rewrite ^/pbs/(.*) /$1 break;
proxy_pass https://192.168.2.179: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 $scheme;
proxy_ssl_verify off;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection 'upgrade';
proxy_read_timeout 3600;
}
location /pbs {
proxy_pass https://192.168.2.180:8007;
proxy_set_header Host $proxy_host;
# Proxmox VE location (e.g., Proxmox VE 2)
location /sto/ {
rewrite ^/sto/(.*) /$1 break;
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;
}
# Optional: Redirect HTTP to HTTPS
error_page 497 https://$host$request_uri;
}