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

This commit is contained in:
hogweed1
2026-11-02 19:01:49 +10:00
parent 1914e4d25e
commit bd3957ec88

View File

@@ -466,11 +466,17 @@ server {
location / {
proxy_pass http://ceph_dashboard_backend;
#===================================================================
# ХИРУРГИЧЕСКИЙ ПЕРЕХВАТ РЕДИРЕКТОВ КЛАССА IP:8080
#===================================================================
# Ловим абсолютно любые редиректы от CherryPy, содержащие IP-адрес и порт 8080,
# и принудительно переписываем их на наш красивый защищенный HTTPS-домен.
proxy_redirect ~^http://[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+:8080(.*)$ https://ceph-dashboard.guaranteedstruggle.host$1;
#===================================================================
# РАЗРЫВАЕМ ПЕТЛЮ РЕДИРЕКТОВ: Полностью отключаем авто-редиректы Angie
#===================================================================
proxy_redirect off;
# Если бэкенд шлет относительный редирект, также фиксируем его на HTTPS
proxy_redirect http://ceph-dashboard.guaranteedstruggle.host https://ceph-dashboard.guaranteedstruggle.host/;
proxy_redirect default;
# Передаем оригинальный хост, чтобы бэкенд не путал домены
proxy_set_header Host $http_host;