Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01UFZ7JWdwCaQAwNYJErL8pP
18 lines
442 B
Nginx Configuration File
18 lines
442 B
Nginx Configuration File
server {
|
|
listen 80;
|
|
|
|
# /api/* → backend (프리픽스 제거: /api/v1/... → /v1/...) — vite dev proxy 와 동일 규칙
|
|
location /api/ {
|
|
proxy_pass http://backend:3300/;
|
|
proxy_set_header Host $host;
|
|
proxy_set_header X-Real-IP $remote_addr;
|
|
}
|
|
|
|
# SPA 정적 서빙
|
|
location / {
|
|
root /usr/share/nginx/html;
|
|
index index.html;
|
|
try_files $uri $uri/ /index.html;
|
|
}
|
|
}
|