From 16ba5089e7a0b11f1fc7312ffe2bf40c56646934 Mon Sep 17 00:00:00 2001 From: Lizandro Guarnizo <77708265+lizandrogd@users.noreply.github.com> Date: Tue, 9 Jun 2026 17:54:34 -0500 Subject: [PATCH] fix: increase timeout and PHP-FPM pool settings to prevent 504 --- Dockerfile | 2 +- docker/nginx.conf | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index a6c707d..2c923ab 100644 --- a/Dockerfile +++ b/Dockerfile @@ -68,7 +68,7 @@ COPY docker/supervisord.conf /etc/supervisor.conf COPY docker/entrypoint.sh /entrypoint.sh RUN chmod +x /entrypoint.sh \ - && printf '[www]\nlisten = 127.0.0.1:9000\nclear_env = no\n' > /usr/local/etc/php-fpm.d/zz-opencode.conf \ + && printf '[www]\nlisten = 127.0.0.1:9000\nclear_env = no\npm.max_children = 20\npm.start_servers = 4\npm.min_spare_servers = 2\npm.max_spare_servers = 6\nrequest_terminate_timeout = 300s\n' > /usr/local/etc/php-fpm.d/zz-opencode.conf \ && php-fpm -t \ && nginx -t \ && echo "* * * * * php /app/artisan schedule:run >> /dev/null 2>&1" > /etc/crontabs/www-data diff --git a/docker/nginx.conf b/docker/nginx.conf index d27ae38..1589306 100644 --- a/docker/nginx.conf +++ b/docker/nginx.conf @@ -31,6 +31,8 @@ server { include fastcgi_params; fastcgi_param APP_ENV production; fastcgi_param HTTPS on; + fastcgi_read_timeout 300s; + fastcgi_send_timeout 300s; } location ~ /\.(?!well-known).* {