well,
All checks were successful
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 0s

This commit is contained in:
hogweed1
2026-11-02 18:23:47 +10:00
parent 5d7768536a
commit a18f0002c0

View File

@@ -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;