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';