From 43a65529d3bb61b281de2b2c53cd3d3114cda41a Mon Sep 17 00:00:00 2001 From: saiminh Date: Thu, 8 Jan 2026 18:40:16 +1300 Subject: [PATCH] change ipv --- nginx.conf.example | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/nginx.conf.example b/nginx.conf.example index b09d042..1022c3e 100644 --- a/nginx.conf.example +++ b/nginx.conf.example @@ -20,8 +20,9 @@ server { # return 301 https://$server_name$request_uri; # Proxy ALL requests (including assets) to Node.js server + # Use 127.0.0.1 instead of localhost to force IPv4 (localhost can resolve to IPv6 ::1) location / { - proxy_pass http://localhost:3001; + proxy_pass http://127.0.0.1:3001; proxy_http_version 1.1; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection 'upgrade'; @@ -48,7 +49,7 @@ server { # server_name your-domain.com www.your-domain.com; # Replace with your domain # # location / { -# proxy_pass http://localhost:3001; +# proxy_pass http://127.0.0.1:3001; # proxy_http_version 1.1; # proxy_set_header Upgrade $http_upgrade; # proxy_set_header Connection 'upgrade'; @@ -81,7 +82,7 @@ server { # ssl_prefer_server_ciphers on; # # location / { -# proxy_pass http://localhost:3001; +# proxy_pass http://127.0.0.1:3001; # proxy_http_version 1.1; # proxy_set_header Upgrade $http_upgrade; # proxy_set_header Connection 'upgrade';