hmm
This commit is contained in:
parent
b687cc994b
commit
47fd11195d
1 changed files with 6 additions and 5 deletions
|
@ -8,7 +8,8 @@ server {
|
|||
|
||||
# Main Proxmox VE location (e.g., Proxmox VE 1)
|
||||
location /main/ {
|
||||
proxy_pass https://192.168.2.180:8006/; # Proxmox VE 1
|
||||
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;
|
||||
|
@ -21,7 +22,8 @@ server {
|
|||
|
||||
# Proxmox Backup Server location (e.g., PBS)
|
||||
location /pbs/ {
|
||||
proxy_pass https://192.168.2.179:8007/; # Proxmox Backup Server
|
||||
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;
|
||||
|
@ -34,7 +36,8 @@ server {
|
|||
|
||||
# Proxmox VE location (e.g., Proxmox VE 2)
|
||||
location /sto/ {
|
||||
proxy_pass https://192.168.2.178:8006/; # Proxmox VE 2
|
||||
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;
|
||||
|
@ -48,5 +51,3 @@ server {
|
|||
# Optional: Redirect HTTP to HTTPS
|
||||
error_page 497 https://$host$request_uri;
|
||||
}
|
||||
|
||||
# Ensure HTTP is redirected to HTTPS
|
||||
|
|
Loading…
Reference in a new issue