Compare commits
8 commits
654789f44d
...
47fd11195d
Author | SHA1 | Date | |
---|---|---|---|
47fd11195d | |||
b687cc994b | |||
3a6a19d391 | |||
778b6e0768 | |||
4bff8a0ec0 | |||
46af26886e | |||
562837f284 | |||
b051047707 |
1 changed files with 31 additions and 16 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue