Skip to content

Commit

Permalink
test: 9100 포트 포워딩
Browse files Browse the repository at this point in the history
  • Loading branch information
Arachneee committed Oct 17, 2024
1 parent f6599f9 commit a6e8ac8
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 17 deletions.
35 changes: 20 additions & 15 deletions .github/workflows/backend-prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -169,15 +169,17 @@ jobs:
proxy_set_header X-Forwarded-Proto \$scheme;
client_max_body_size 300M;
}
}
server {
listen 9100;
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;
}
proxy_pass http://haengdong-backend-$NEXT_PORT:8080;
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;
}
}" > ./nginx-conf/default.conf
# Nginx 컨테이너 내부에서 설정 리로드
Expand Down Expand Up @@ -206,14 +208,17 @@ jobs:
proxy_set_header X-Forwarded-Proto \$scheme;
client_max_body_size 300M;
}
}
server {
listen 9100;
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;
}
proxy_pass http://haengdong-backend-$NEXT_PORT:8080;
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;
}
}" > ./nginx-conf/default.conf
# 새로운 Nginx 컨테이너 실행
Expand Down
2 changes: 0 additions & 2 deletions server/src/main/resources/application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,6 @@ image:
base-url: https://d2unln22cedgp9.cloudfront.net/

management:
server:
port: 9100
endpoints:
web:
exposure:
Expand Down

0 comments on commit a6e8ac8

Please sign in to comment.