fix: disable IPv6 binding in Nginx and increase buffers
This commit is contained in:
@@ -22,8 +22,7 @@ http {
|
|||||||
server_names_hash_bucket_size 128; # this seems to be required for some vhosts
|
server_names_hash_bucket_size 128; # this seems to be required for some vhosts
|
||||||
|
|
||||||
server {
|
server {
|
||||||
listen ${PORT};
|
listen 0.0.0.0:${PORT};
|
||||||
listen [::]:${PORT};
|
|
||||||
server_name localhost;
|
server_name localhost;
|
||||||
|
|
||||||
$if(NIXPACKS_PHP_ROOT_DIR) (
|
$if(NIXPACKS_PHP_ROOT_DIR) (
|
||||||
@@ -65,9 +64,10 @@ http {
|
|||||||
include $!{nginx}/conf/fastcgi.conf;
|
include $!{nginx}/conf/fastcgi.conf;
|
||||||
|
|
||||||
# --- CUSTOM: INCREASE BUFFERS TO FIX 502 BAD GATEWAY ---
|
# --- CUSTOM: INCREASE BUFFERS TO FIX 502 BAD GATEWAY ---
|
||||||
fastcgi_buffers 16 32k;
|
fastcgi_buffers 64 32k;
|
||||||
fastcgi_buffer_size 64k;
|
fastcgi_buffer_size 64k;
|
||||||
fastcgi_busy_buffers_size 64k;
|
fastcgi_busy_buffers_size 64k;
|
||||||
|
fastcgi_max_temp_file_size 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
location ~ /\.(?!well-known).* {
|
location ~ /\.(?!well-known).* {
|
||||||
|
|||||||
Reference in New Issue
Block a user