diff --git a/.github/workflows/backend-prod.yml b/.github/workflows/backend-prod.yml index e7ac8761..b36dc470 100644 --- a/.github/workflows/backend-prod.yml +++ b/.github/workflows/backend-prod.yml @@ -169,6 +169,15 @@ jobs: proxy_set_header X-Forwarded-Proto \$scheme; client_max_body_size 300M; } + + location /actuator { + proxy_pass http://haengdong-backend-$NEXT_PORT:9100; + proxy_set_header Host $host; + 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; + client_max_body_size 300M; + } }" > ./nginx-conf/default.conf # Nginx 컨테이너 내부에서 설정 리로드 @@ -197,6 +206,14 @@ jobs: proxy_set_header X-Forwarded-Proto \$scheme; client_max_body_size 300M; } + location /actuator { + proxy_pass http://haengdong-backend-$NEXT_PORT:9100; + proxy_set_header Host $host; + 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; + client_max_body_size 300M; + } }" > ./nginx-conf/default.conf # 새로운 Nginx 컨테이너 실행