Skip to content

Commit

Permalink
fix : 캐디 파일 리버스 프록시 들여쓰기 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
huncozyboy committed Jan 11, 2025
1 parent 286a466 commit aa6a331
Showing 1 changed file with 14 additions and 11 deletions.
25 changes: 14 additions & 11 deletions .github/workflows/dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -136,21 +136,24 @@ jobs:
sleep 5
fi
done
# 리버스 프록시 설정 업데이트
REVERSE_PROXY_CONFIG=$(cat <<EOF
{
admin 0.0.0.0:2020
}
3.38.193.157.nip.io {
reverse_proxy localhost:${AFTER_PORT}
}
EOF
)
# Health-Check 결과 확인
if [ "$HEALTHY" = true ]; then
echo "** Health-Check 성공: ${AFTER_NAME} 컨테이너 정상 작동"
# 리버스 프록시 설정 업데이트
echo "** 리버스 프록시 설정 업데이트"
sudo tee /etc/caddy/Caddyfile <<EOF
{
admin 0.0.0.0:2020
}
3.38.193.157.nip.io {
reverse_proxy localhost:${AFTER_PORT}
}
EOF
echo "$REVERSE_PROXY_CONFIG" | sudo tee /etc/caddy/Caddyfile
# Caddy 재시작
echo "** Caddy 서비스 재시작"
Expand Down

0 comments on commit aa6a331

Please # to comment.