nginx blue-green 배포 후 502 Bad Gateway — sed 치환이 다른 서비스 upstream까지 바꿀 때환경온프레미스 dev 서버Docker / Docker Compose (blue-green 배포: docker-compose.blue.yaml / docker-compose.green.yaml 교대 기동)nginx (Docker 공식 이미지, 리버스 프록시)Jenkins Multibranch Pipeline → Jenkinsfile → deploy.sh 실행nginx 설정: 단일 nginx.conf로 전 서비스 일괄 관리 (문제 발생 당시)증상기존 서비스(api)를 배포했을 뿐인데, 아무 관련 없는 다른 서비스(000-api)가 502를 반환하기 시작했다.502 Bad Gateway..