This commit is contained in:
@@ -428,4 +428,32 @@ server {
|
|||||||
location / {
|
location / {
|
||||||
proxy_pass http://ceph_rgw_backend;
|
proxy_pass http://ceph_rgw_backend;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
upstream ceph_dashboard_backend {
|
||||||
|
# Сюда прописываем те ноды, где у вас запущены и могут быть активны ceph-mgr
|
||||||
|
# Порт HTTP 8080 (как мы настроили в самом начале)
|
||||||
|
server 192.168.0.71:8080 max_fails=3 fail_timeout=10s;
|
||||||
|
server 192.168.0.72:8080 max_fails=3 fail_timeout=10s;
|
||||||
|
server 192.168.0.73:8080 max_fails=3 fail_timeout=10s;
|
||||||
|
server 192.168.0.75:8080 max_fails=3 fail_timeout=10s;
|
||||||
|
server 192.168.0.89:8080 max_fails=3 fail_timeout=10s;
|
||||||
|
}
|
||||||
|
|
||||||
|
server {
|
||||||
|
listen 80;
|
||||||
|
server_name ceph-pve.guaranteedstruggle.host; # Имя для админки
|
||||||
|
|
||||||
|
location / {
|
||||||
|
proxy_pass http://ceph_dashboard_backend;
|
||||||
|
proxy_set_header Host $http_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;
|
||||||
|
|
||||||
|
# Дашборд использует SSE (Server-Sent Events) для графиков, отключаем буфер
|
||||||
|
proxy_buffering off;
|
||||||
|
proxy_read_timeout 3600s;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user