fix: /login, /dashboard 301 무한루프 해소 — gateway 내부 프록시로 전환

tkfb.technicalkorea.net이 system1-web을 직접 가리키므로
자기 자신으로 301 리다이렉트 → 무한 루프 발생.
외부 리다이렉트 대신 gateway 컨테이너로 내부 프록시.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Hyungi Ahn
2026-04-01 15:44:08 +09:00
parent 0de9d5bb48
commit 7db072ed14

View File

@@ -100,12 +100,19 @@ server {
proxy_send_timeout 180s; proxy_send_timeout 180s;
} }
# 레거시 /login, /dashboard → gateway 리다이렉트 # /login → 로그인 페이지 (gateway 대시보드)
# tkfb.technicalkorea.net이 system1-web을 직접 가리키므로
# 외부 리다이렉트 대신 gateway 내부 프록시로 처리
location = /login { location = /login {
return 302 $scheme://tkfb.technicalkorea.net/dashboard$is_args$args; set $gw http://gateway:80;
rewrite ^/login$ /dashboard break;
proxy_pass $gw;
proxy_set_header Host $host;
} }
location = /dashboard { location = /dashboard {
return 301 $scheme://tkfb.technicalkorea.net/dashboard; set $gw http://gateway:80;
proxy_pass $gw;
proxy_set_header Host $host;
} }
# Health check # Health check