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