Skip to content

chore: Nginx proxy_pass envsubst 환경변수 전환#394

Open
SnailW wants to merge 4 commits intochore/389-split-docker-compose-by-instancefrom
chore/390-nginx-envsubst-proxy
Open

chore: Nginx proxy_pass envsubst 환경변수 전환#394
SnailW wants to merge 4 commits intochore/389-split-docker-compose-by-instancefrom
chore/390-nginx-envsubst-proxy

Conversation

@SnailW
Copy link
Collaborator

@SnailW SnailW commented Mar 4, 2026

🔗 관련 이슈

✅ 작업 내용

  • nginx.confnginx.conf.template로 변환하여 envsubst 기반 환경변수 치환 적용
  • proxy_pass 대상을 Docker 내부 호스트명(backend)에서 ${WAS_HOST} 환경변수로 변경
    • 배포 환경: WAS Private IP가 런타임에 주입됨
    • 로컬 환경: 기본값 backend로 동작
  • dockerfile.prod 템플릿을 /etc/nginx/templates/로 복사하여 nginx 공식 이미지의 자동 envsubst 활용
  • docker-compose.webserver.yml: WAS_HOST 환경변수 추가
  • nginx.conf.template: 80번 서버 블록에서 HTTPS 리다이렉트에 불필요한 Gzip, 보안 헤더, body size 제한 제거

💬 참고 사항

SnailW added 4 commits March 4, 2026 17:07
- proxy_pass 대상을 ${WAS_HOST} 환경변수로 주입
- HTTPS 리다이렉트만 수행하는 블록에서 Gzip, 보안 헤더, body size 제한 제거
@SnailW SnailW linked an issue Mar 4, 2026 that may be closed by this pull request
3 tasks
@auto-assign auto-assign bot requested review from Grit03, as-zini and davidpro08 March 4, 2026 11:29
@vercel
Copy link

vercel bot commented Mar 4, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
web15-ipconfig-frontend Ready Ready Preview, Comment Mar 4, 2026 11:29am

@github-actions github-actions bot added the ⚙️ chore 설정 파일 수정, 패키지 매니저 관리 등 label Mar 4, 2026
@SnailW SnailW changed the base branch from main to chore/389-split-docker-compose-by-instance March 4, 2026 11:29
Copy link
Collaborator

@davidpro08 davidpro08 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

내용을 보면서 이해할 수 있었습니다. 수고하셨습니다.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

⚙️ chore 설정 파일 수정, 패키지 매니저 관리 등

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[SUB] Nginx 설정 변경 - WAS Private IP 프록시

2 participants