[EDGE] fix matrix redirect loop: tunnel origin https 443, noTLSVerify
lint / hygiene (pull_request) Failing after 40s
standard / check (pull_request) Successful in 23s
lint / hygiene (push) Failing after 4m1s

This commit is contained in:
architect committed 2026-12-02 21:51:01 +03:00
1 parent 88e9013217
commit df9cfabcf3
2 files changed
+61 -3

No files matched your search

@@ -0,0 +1,58 @@
# Tunnel origin fix — Matrix redirect loop
Дата: 2026-12-02 21:50 MSK
Статус: **fixed**
## Симптом
`https://matrix.buryans.ru` → `ERR_TOO_MANY_REDIRECTS`.
## Причина
Tunnel ingress отправлял запросы на:
```text
http://192.168.1.10:80
```
Nginx на 80 для `matrix/chat` делает:
```text
return 301 https://$host$request_uri;
```
Cloudflare снова шёл в tunnel → снова HTTP 80 → снова 301. Бесконечный цикл.
## Исправление
Ingress для `*.buryans.ru` и apex:
```text
https://192.168.1.10:443
originRequest:
noTLSVerify: true
```
`jump.buryans.ru` оставлен на `http://localhost:80`.
## Проверка
```text
matrix.buryans.ru 302 → /_matrix/static → 200
element.buryans.ru 302 → Authentik
authentik.buryans.ru 302 → login
books.buryans.ru 302 → Authentik
git.buryans.ru 200
home.buryans.ru 302 → Authentik
status.buryans.ru 302 → Authentik
```
DNS `matrix` теперь отдаётся Cloudflare (`104.21.33.27`).
## Rollback
Вернуть ingress на `http://192.168.1.10:80` (не рекомендуется — вернёт цикл).
## Вывод
Cloudflare не нужно убирать. Проблема была в origin-схеме tunnel, а не в Cloudflare.
+3 -3
View File
@@ -10,7 +10,7 @@
```text
Cloudflare DNS (CNAME)
→ tunnel buryans-jump на new VPS 45.86.79.17:443/outbound
→ http://192.168.1.10:80 (home nginx, Tailscale)
→ https://192.168.1.10:443 (home nginx, Tailscale; noTLSVerify)
```
Beget — только регистратор/почта. Authoritative DNS — Cloudflare.
@@ -32,8 +32,8 @@ proxied = true
```text
jump.buryans.ru → http://localhost:80
*.buryans.ru → http://192.168.1.10:80
buryans.ru → http://192.168.1.10:80
*.buryans.ru → https://192.168.1.10:443 (originRequest.noTLSVerify)
buryans.ru → https://192.168.1.10:443 (originRequest.noTLSVerify)
fallback → http_status:404
```