Skip to content

Commit 54a7e3d

Browse files
committed
πŸ› Fix: μŠ€ν”„λ§ μ»¨ν…Œμ΄λ„ˆλ‘œ proxy path μˆ˜μ •
1 parent 25d6465 commit 54a7e3d

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

β€Žnginx/conf.d/app.confβ€Ž

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
upstream spring_app {
2+
server interview-be-app:8080;
3+
}
4+
15
server {
26
listen 80;
37
listen [::]:80;
@@ -25,7 +29,7 @@ server {
2529

2630
# κΈ°λ³Έ ν”„λ‘μ‹œ
2731
location / {
28-
proxy_pass http://localhost:8080;
32+
proxy_pass http://spring_app:8080;
2933
proxy_set_header Host $http_host;
3034
proxy_set_header X-Real-IP $remote_addr;
3135
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
@@ -35,7 +39,7 @@ server {
3539

3640
# SSE (νƒ€μž„μ•„μ›ƒ/버퍼링 μ‘°μ •)
3741
location /notifications/subscribe {
38-
proxy_pass http://localhost:8080;
42+
proxy_pass http://spring_app:8080;
3943
proxy_http_version 1.1;
4044
proxy_set_header Connection '';
4145
proxy_buffering off;

0 commit comments

Comments
Β (0)