Skip to content

Commit ced45ee

Browse files
committed
🐛 Fix: spring_app upstream에 이미 8080 포트 포함
1 parent 54a7e3d commit ced45ee

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

nginx/conf.d/app.conf

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,16 +20,17 @@ server {
2020
}
2121

2222
server {
23-
listen 443 ssl http2;
24-
listen [::]:443 ssl http2;
23+
listen 443 ssl;
24+
listen [::]:443 ssl;
25+
http2;
2526
server_name dev-be-api.injob.store;
2627

2728
ssl_certificate /etc/letsencrypt/live/dev-be-api.injob.store/fullchain.pem;
2829
ssl_certificate_key /etc/letsencrypt/live/dev-be-api.injob.store/privkey.pem;
2930

3031
# 기본 프록시
3132
location / {
32-
proxy_pass http://spring_app:8080;
33+
proxy_pass http://spring_app;
3334
proxy_set_header Host $http_host;
3435
proxy_set_header X-Real-IP $remote_addr;
3536
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
@@ -39,7 +40,7 @@ server {
3940

4041
# SSE (타임아웃/버퍼링 조정)
4142
location /notifications/subscribe {
42-
proxy_pass http://spring_app:8080;
43+
proxy_pass http://spring_app;
4344
proxy_http_version 1.1;
4445
proxy_set_header Connection '';
4546
proxy_buffering off;

0 commit comments

Comments
 (0)