fix: increase timeout and PHP-FPM pool settings to prevent 504
This commit is contained in:
+1
-1
@@ -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
|
||||
|
||||
@@ -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).* {
|
||||
|
||||
Reference in New Issue
Block a user