From eecc3ad9e2ce8ecaa89324a3fe0b5fb16bd20cd4 Mon Sep 17 00:00:00 2001 From: test Date: Sun, 30 Nov 2025 19:25:16 +0530 Subject: [PATCH] Fix: Proxy to Docker bridge gateway (172.17.0.1) so frontend can reach backend --- frontend/nginx.conf | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/frontend/nginx.conf b/frontend/nginx.conf index fea5365..8785525 100644 --- a/frontend/nginx.conf +++ b/frontend/nginx.conf @@ -59,7 +59,9 @@ http { # Proxy API calls to backend location /api { - proxy_pass http://127.0.0.1:3001; + # Use Docker bridge gateway so container can reach host's backend + # 172.17.0.1 is the common Docker bridge gateway; adjust if different + proxy_pass http://172.17.0.1:3001; proxy_http_version 1.1; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection 'upgrade';