From a1d087b24d2f6dc57d3a8152cd69d6b9d7a5166c Mon Sep 17 00:00:00 2001 From: Suriya Date: Wed, 29 Apr 2026 13:26:30 +0530 Subject: [PATCH] fix: disable IPv6 binding in Nginx and increase buffers --- nginx.template.conf | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/nginx.template.conf b/nginx.template.conf index 25fe421..2ecdd02 100644 --- a/nginx.template.conf +++ b/nginx.template.conf @@ -22,8 +22,7 @@ http { server_names_hash_bucket_size 128; # this seems to be required for some vhosts server { - listen ${PORT}; - listen [::]:${PORT}; + listen 0.0.0.0:${PORT}; server_name localhost; $if(NIXPACKS_PHP_ROOT_DIR) ( @@ -65,9 +64,10 @@ http { include $!{nginx}/conf/fastcgi.conf; # --- CUSTOM: INCREASE BUFFERS TO FIX 502 BAD GATEWAY --- - fastcgi_buffers 16 32k; + fastcgi_buffers 64 32k; fastcgi_buffer_size 64k; fastcgi_busy_buffers_size 64k; + fastcgi_max_temp_file_size 0; } location ~ /\.(?!well-known).* {