diff --git a/.platform/nginx/conf.d/nginx.conf b/.platform/nginx/conf.d/nginx.conf index f1784be..bc938ac 100644 --- a/.platform/nginx/conf.d/nginx.conf +++ b/.platform/nginx/conf.d/nginx.conf @@ -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; @@ -50,7 +34,6 @@ http { listen 80 default_server; listen [::]:80 default_server; - location / { proxy_pass http://springboot; proxy_http_version 1.1; @@ -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;