“vinit5112” commited on
Commit
7d75dab
·
1 Parent(s): 604e0d1

fix: proxy backend to localhost in nginx config

Browse files
Files changed (1) hide show
  1. frontend/nginx.conf +1 -1
frontend/nginx.conf CHANGED
@@ -14,7 +14,7 @@ server {
14
  # Any request to http://<your-space-url>/api/...
15
  # will be forwarded to http://backend:8000/...
16
  location /api {
17
- proxy_pass http://backend:8000; # 'backend' is the service name in docker-compose.yml
18
  proxy_set_header Host $host;
19
  proxy_set_header X-Real-IP $remote_addr;
20
  proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
 
14
  # Any request to http://<your-space-url>/api/...
15
  # will be forwarded to http://backend:8000/...
16
  location /api {
17
+ proxy_pass http://127.0.0.1:8000; # 'backend' is the service name in docker-compose.yml
18
  proxy_set_header Host $host;
19
  proxy_set_header X-Real-IP $remote_addr;
20
  proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;