From d34030c8cebbb736a2aa1b8b4548c0583543c8e6 Mon Sep 17 00:00:00 2001 From: happybell80 Date: Mon, 17 Nov 2025 18:29:17 +0900 Subject: [PATCH] =?UTF-8?q?feat:=20admin=20dashboard=20=ED=91=9C=EC=A4=80?= =?UTF-8?q?=20=EB=B0=B0=ED=8F=AC=20=EB=B0=A9=EC=8B=9D=20=EC=A0=81=EC=9A=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - /admin: nginx가 정적 파일 직접 서빙 - /admin/api/*: Gateway로 프록시 (JWT 검증) - frontend-customer와 동일한 패턴 적용 --- server-nginx-default | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) diff --git a/server-nginx-default b/server-nginx-default index 4ad2be0..263692c 100644 --- a/server-nginx-default +++ b/server-nginx-default @@ -80,8 +80,16 @@ server { proxy_set_header X-Forwarded-Proto $scheme; } - # Admin dashboard -> route to gateway (host 8100 -> container 8000) + # Admin dashboard -> 정적 파일 직접 서빙 (표준 방식) + # 참고: frontend-customer와 동일한 패턴 (root 사용) location /admin { + root /home/admin/admin-dashboard; + try_files /frontend$uri /frontend$uri/ /frontend/index.html; + index index.html; + } + + # Admin API -> Gateway로 프록시 (JWT 검증 필요) + location /admin/api/ { proxy_pass http://localhost:8100; proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; @@ -209,8 +217,16 @@ server { proxy_set_header X-Forwarded-Proto $scheme; } - # Admin dashboard -> route to gateway (host 8100 -> container 8000) + # Admin dashboard -> 정적 파일 직접 서빙 (표준 방식) + # 참고: frontend-customer와 동일한 패턴 (root 사용) location /admin { + root /home/admin/admin-dashboard; + try_files /frontend$uri /frontend$uri/ /frontend/index.html; + index index.html; + } + + # Admin API -> Gateway로 프록시 (JWT 검증 필요) + location /admin/api/ { proxy_pass http://localhost:8100; proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr;