This commit is contained in:
@@ -445,6 +445,7 @@ server {
|
|||||||
listen 80;
|
listen 80;
|
||||||
server_name ceph-dashboard.guaranteedstruggle.host; # Имя для админки
|
server_name ceph-dashboard.guaranteedstruggle.host; # Имя для админки
|
||||||
|
|
||||||
|
|
||||||
location / {
|
location / {
|
||||||
proxy_pass http://ceph_dashboard_backend;
|
proxy_pass http://ceph_dashboard_backend;
|
||||||
proxy_set_header Host $http_host;
|
proxy_set_header Host $http_host;
|
||||||
@@ -452,6 +453,13 @@ server {
|
|||||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||||
proxy_set_header X-Forwarded-Proto $scheme;
|
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) для графиков, отключаем буфер
|
# Дашборд использует SSE (Server-Sent Events) для графиков, отключаем буфер
|
||||||
proxy_buffering off;
|
proxy_buffering off;
|
||||||
proxy_read_timeout 3600s;
|
proxy_read_timeout 3600s;
|
||||||
|
|||||||
Reference in New Issue
Block a user