mirror of
https://github.com/headporter81/ss-front-react.git
synced 2026-12-06 07:41:11 +09:00
fix : nginx /api 프록시를 백엔드 포트 18080으로 복구 (8080은 리버스 프록시라 리다이렉트 루프 발생)
SpecialSource Frontend (React) CD / deploy (push) Successful in 11s
SpecialSource Frontend (React) CD / deploy (push) Successful in 11s
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
3c5b3c6fbd
commit
97321b8bef
1 file changed
+2
-2
+2
-2
@@ -3,9 +3,9 @@ server {
|
||||
root /usr/share/nginx/html;
|
||||
index index.html;
|
||||
|
||||
# 같은 도메인의 /api 요청을 NAS 백엔드(8080)로 전달 → 브라우저는 CORS 없이 호출
|
||||
# 같은 도메인의 /api 요청을 NAS 백엔드(18080)로 전달 → 브라우저는 CORS 없이 호출
|
||||
location /api/ {
|
||||
proxy_pass http://192.168.0.215:8080;
|
||||
proxy_pass http://192.168.0.215:18080;
|
||||
proxy_set_header Host $host;
|
||||
proxy_set_header X-Real-IP $remote_addr;
|
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
|
||||
Reference in new issue
Block a user