From ca86dc316c9b6f6aba8ea09551a0daeddee4d873 Mon Sep 17 00:00:00 2001 From: Hyungi Ahn Date: Wed, 1 Apr 2026 13:38:50 +0900 Subject: [PATCH] =?UTF-8?q?fix(nginx):=20/api/auth/=20=ED=94=84=EB=A1=9D?= =?UTF-8?q?=EC=8B=9C=20=EC=B6=94=EA=B0=80=20=E2=80=94=20=EB=B9=84=EB=B0=80?= =?UTF-8?q?=EB=B2=88=ED=98=B8=20=EB=B3=80=EA=B2=BD=20API=20=EB=9D=BC?= =?UTF-8?q?=EC=9A=B0=ED=8C=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit change-password.js가 /api/auth/change-password로 요청하는데 기존 /api/ location이 system1-api로 보내서 404 발생. /api/auth/ location을 /api/ 앞에 추가하여 sso-auth로 프록시. Co-Authored-By: Claude Opus 4.6 (1M context) --- system1-factory/web/nginx.conf | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/system1-factory/web/nginx.conf b/system1-factory/web/nginx.conf index b618f12..365f2cf 100644 --- a/system1-factory/web/nginx.conf +++ b/system1-factory/web/nginx.conf @@ -24,6 +24,17 @@ server { add_header Cache-Control "public, no-transform"; } + # SSO Auth API 프록시 (/api/auth/* → sso-auth) + location /api/auth/ { + set $upstream http://sso-auth:3000; + proxy_pass $upstream$request_uri; + proxy_http_version 1.1; + 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; + } + # API 프록시 (System 1 API) location /api/ { set $upstream http://system1-api:3005;