diff --git a/Dockerfile b/Dockerfile index abc847c..d575ba1 100644 --- a/Dockerfile +++ b/Dockerfile @@ -20,7 +20,7 @@ COPY --from=build /app/dist /usr/share/nginx/html # 우리가 방금 만든 nginx.conf 설정 파일을 덮어씌움 COPY nginx.conf /etc/nginx/conf.d/default.conf -# 80 포트 오픈 -EXPOSE 80 +# 80, 443 포트 오픈 +EXPOSE 80 443 # Nginx 실행 CMD ["nginx", "-g", "daemon off;"] diff --git a/nginx.conf b/nginx.conf index f5314c8..994eacb 100644 --- a/nginx.conf +++ b/nginx.conf @@ -31,6 +31,9 @@ server { 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; + + # 백엔드에서 오는 리다이렉트 경로에 /coinsight 추가 + proxy_redirect / /coinsight/; } # 2. 그 외 모든 요청 → 프론트엔드(React)