diff --git a/files/angie/lb1.guaranteedstruggle.host.conf b/files/angie/lb1.guaranteedstruggle.host.conf index 668f996..688724b 100644 --- a/files/angie/lb1.guaranteedstruggle.host.conf +++ b/files/angie/lb1.guaranteedstruggle.host.conf @@ -444,6 +444,7 @@ upstream ceph_dashboard_backend { server { listen 80; server_name ceph-dashboard.guaranteedstruggle.host; # Имя для админки + location / { proxy_pass http://ceph_dashboard_backend; @@ -452,6 +453,13 @@ server { proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-Proto $scheme; + #=================================================================== + # МАГИЯ АНДЖИ: Перехватываем и переписываем любые редиректы бэкенда + #=================================================================== + # Если Ceph шлет редирект на любой IP с портом 8080, подменяем его на наш домен + proxy_redirect ~^http://[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+:8080(.*)$ http://ceph-dashboard.guaranteedstruggle.host$1; + proxy_redirect default; + # Дашборд использует SSE (Server-Sent Events) для графиков, отключаем буфер proxy_buffering off; proxy_read_timeout 3600s;