docker-php
docker-php copied to clipboard
Questions about Nginx FastCGI timeout Settings
Steps To Reproduce
- Send a long-running request.
- Observe the 504 timeout error.
Outcome
What did you expect?
I hope to receive suggestions on how to better adjust the Nginx and PHP-FPM configurations to handle long-running requests.
What happened instead?
504 Gateway Time-out
Affected Docker Images
serversideup/php:8.1-fpm-nginx
Anything else?
` # Pass "*.php" files to PHP-FPM location ~ .php$ { include snippets/fastcgi-php.conf; fastcgi_pass 127.0.0.1:9000;
# Timeout Setting
fastcgi_connect_timeout 180s;
fastcgi_send_timeout 180s;
fastcgi_read_timeout 180s;
}`