From baf68ca065d2b8cfcb7046a5b472da9af205f7b3 Mon Sep 17 00:00:00 2001 From: Hyungi Ahn Date: Fri, 13 Mar 2026 16:51:05 +0900 Subject: [PATCH] =?UTF-8?q?feat(gateway):=20=ED=86=B5=ED=95=A9=20=EB=8C=80?= =?UTF-8?q?=EC=8B=9C=EB=B3=B4=EB=93=9C=20=EB=84=A4=EB=B9=84=EA=B2=8C?= =?UTF-8?q?=EC=9D=B4=EC=85=98=20=ED=97=88=EB=B8=8C=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 로그인 후 다른 시스템으로의 진입점이 없던 문제 해결. dashboard.html에 로그인 폼 + 네비게이션 허브를 통합하고, /, /login을 /dashboard로 리다이렉트. Co-Authored-By: Claude Opus 4.6 --- gateway/html/dashboard.html | 613 ++++++++++++++++++++++++++++++ gateway/html/shared/nav-header.js | 4 +- gateway/nginx.conf | 16 +- 3 files changed, 628 insertions(+), 5 deletions(-) create mode 100644 gateway/html/dashboard.html diff --git a/gateway/html/dashboard.html b/gateway/html/dashboard.html new file mode 100644 index 0000000..f63802f --- /dev/null +++ b/gateway/html/dashboard.html @@ -0,0 +1,613 @@ + + + + + + TK 대시보드 + + + + + + + + + + + + diff --git a/gateway/html/shared/nav-header.js b/gateway/html/shared/nav-header.js index f888494..b1abc05 100644 --- a/gateway/html/shared/nav-header.js +++ b/gateway/html/shared/nav-header.js @@ -62,10 +62,10 @@ var loginUrl; if (hostname.includes('technicalkorea.net')) { - loginUrl = window.location.protocol + '//tkfb.technicalkorea.net/login'; + loginUrl = window.location.protocol + '//tkfb.technicalkorea.net/dashboard'; } else { // 개발 환경: Gateway 포트 (30000) - loginUrl = window.location.protocol + '//' + hostname + ':30000/login'; + loginUrl = window.location.protocol + '//' + hostname + ':30000/dashboard'; } if (redirect) { diff --git a/gateway/nginx.conf b/gateway/nginx.conf index 5b3c614..7434f18 100644 --- a/gateway/nginx.conf +++ b/gateway/nginx.conf @@ -7,11 +7,21 @@ server { # ===== Gateway 자체 페이지 (포털, 로그인) ===== root /usr/share/nginx/html; - # 로그인 페이지 (캐시 금지 — SSO 쿠키 재설정 로직 항상 최신 반영) - location = /login { + # 대시보드 (로그인 + 네비게이션 허브 통합) + location = /dashboard { add_header Cache-Control "no-store, no-cache, must-revalidate"; add_header Pragma "no-cache"; - try_files /login.html =404; + try_files /dashboard.html =404; + } + + # 루트 → 대시보드 리다이렉트 + location = / { + return 302 /dashboard$is_args$args; + } + + # 로그인 → 대시보드 리다이렉트 + location = /login { + return 302 /dashboard$is_args$args; } # 공유 JS/CSS (nav-header 등)