Files
ss-front-react/nginx.conf
T
headporterandClaude Opus 5.5 3c5b3c6fbd
SpecialSource Frontend (React) CD / deploy (push) Successful in 11s
chore : nginx.conf 주석 포트 8080으로 수정
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-17 15:39:09 +09:00

20 lines
588 B
Nginx Configuration File

server {
listen 80;
root /usr/share/nginx/html;
index index.html;
# 같은 도메인의 /api 요청을 NAS 백엔드(8080)로 전달 → 브라우저는 CORS 없이 호출
location /api/ {
proxy_pass http://192.168.0.215:8080;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
}
# Next 정적 export: /about → about.html
location / {
try_files $uri $uri.html $uri/ =404;
}
}