Skip to content

Commit

Permalink
nginx.conf update
Browse files Browse the repository at this point in the history
  • Loading branch information
chosoobin37 committed Jun 30, 2024
1 parent bdeeea6 commit 2e7304e
Showing 1 changed file with 6 additions and 18 deletions.
24 changes: 6 additions & 18 deletions .platform/nginx/conf.d/nginx.conf
Original file line number Diff line number Diff line change
@@ -1,19 +1,3 @@
# server {
# listen 80;
#
# location / {
# proxy_pass http://127.0.0.1:5000;
# 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;
# }
#
# location /static/ {
# alias /var/app/current/static/;
# }
# }

user nginx;
error_log /var/log/nginx/error.log warn;
pid /var/run/nginx.pid;
Expand Down Expand Up @@ -50,7 +34,6 @@ http {
listen 80 default_server;
listen [::]:80 default_server;


location / {
proxy_pass http://springboot;
proxy_http_version 1.1;
Expand All @@ -60,10 +43,15 @@ http {
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;
}

location /static/ {
alias /var/app/current/static/;
}

location /actuator/health {
proxy_pass http://springboot/actuator/health; # Spring Boot 애플리케이션의 헬스 체크 엔드포인트
proxy_pass http://springboot/actuator/health;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
Expand Down

0 comments on commit 2e7304e

Please sign in to comment.