From 7db072ed1486d81e89f88c560f23d3859c827136 Mon Sep 17 00:00:00 2001 From: Hyungi Ahn Date: Wed, 1 Apr 2026 15:44:08 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20/login,=20/dashboard=20301=20=EB=AC=B4?= =?UTF-8?q?=ED=95=9C=EB=A3=A8=ED=94=84=20=ED=95=B4=EC=86=8C=20=E2=80=94=20?= =?UTF-8?q?gateway=20=EB=82=B4=EB=B6=80=20=ED=94=84=EB=A1=9D=EC=8B=9C?= =?UTF-8?q?=EB=A1=9C=20=EC=A0=84=ED=99=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit tkfb.technicalkorea.net이 system1-web을 직접 가리키므로 자기 자신으로 301 리다이렉트 → 무한 루프 발생. 외부 리다이렉트 대신 gateway 컨테이너로 내부 프록시. Co-Authored-By: Claude Opus 4.6 (1M context) --- system1-factory/web/nginx.conf | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/system1-factory/web/nginx.conf b/system1-factory/web/nginx.conf index 26bd05b..c3b6ed6 100644 --- a/system1-factory/web/nginx.conf +++ b/system1-factory/web/nginx.conf @@ -100,12 +100,19 @@ server { proxy_send_timeout 180s; } - # 레거시 /login, /dashboard → gateway 리다이렉트 + # /login → 로그인 페이지 (gateway 대시보드) + # tkfb.technicalkorea.net이 system1-web을 직접 가리키므로 + # 외부 리다이렉트 대신 gateway 내부 프록시로 처리 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 { - return 301 $scheme://tkfb.technicalkorea.net/dashboard; + set $gw http://gateway:80; + proxy_pass $gw; + proxy_set_header Host $host; } # Health check