Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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;"]
3 changes: 3 additions & 0 deletions nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
Loading