feat: admin dashboard 표준 배포 방식 적용
All checks were successful
Deploy Nginx Config to Ubuntu Server / deploy (push) Successful in 1s

- /admin: nginx가 정적 파일 직접 서빙
- /admin/api/*: Gateway로 프록시 (JWT 검증)
- frontend-customer와 동일한 패턴 적용
This commit is contained in:
happybell80 2025-11-17 18:29:17 +09:00
parent 950cb6da5d
commit d34030c8ce

View File

@ -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;