fix: increase timeout and PHP-FPM pool settings to prevent 504

This commit is contained in:
Lizandro Guarnizo
2026-06-09 17:54:34 -05:00
parent b6feb44470
commit 16ba5089e7
2 changed files with 3 additions and 1 deletions
+1 -1
View File
@@ -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
+2
View File
@@ -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).* {