chore: 킹서버 배포 스크립트, 포트 환경변수화, 프론트 nginx 가 /v1 을 백엔드로 전달

This commit is contained in:
minaChoi committed 2026-10-06 16:59:01 +09:00
1 parent ebbc21dc0f
commit 64de307995
5 files changed
+48 -4

No files matched your search

+8
View File
@@ -20,6 +20,14 @@ server {
try_files $uri =404;
}
# API 는 같은 주소로 받아 backend 컨테이너로 넘긴다
location /v1/ {
proxy_pass http://backend:9800;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
}
# SPA: /indices, /sky 같은 주소로 새로고침해도 index.html을 돌려준다
location / {
add_header Cache-Control "no-cache";