76 lines
2.6 KiB
Text
76 lines
2.6 KiB
Text
server {
|
|
listen 564 ssl;
|
|
server_name kvm.nazuna.ovh;
|
|
|
|
ssl_certificate /root/certs/pve-sto/cert.pem;
|
|
ssl_certificate_key /root/certs/pve-sto/key.pem;
|
|
|
|
# Proxy configuration for Proxmox Backup Server (PBS)
|
|
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 $scheme;
|
|
|
|
proxy_ssl_verify off;
|
|
proxy_set_header Upgrade $http_upgrade;
|
|
proxy_set_header Connection 'upgrade';
|
|
proxy_read_timeout 3600;
|
|
|
|
# Handle static assets for PBS
|
|
location /pve2/ {
|
|
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 $scheme;
|
|
}
|
|
}
|
|
|
|
# Proxy configuration for Proxmox VE
|
|
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;
|
|
|
|
# Handle static assets for PVE
|
|
location /pve2/ {
|
|
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 configuration for Proxmox storage
|
|
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;
|
|
|
|
# Handle static assets for storage
|
|
location /pve2/ {
|
|
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;
|
|
}
|
|
}
|
|
}
|