docker-php icon indicating copy to clipboard operation
docker-php copied to clipboard

Questions about Nginx FastCGI timeout Settings

Open zhkugh opened this issue 1 year ago • 0 comments

Steps To Reproduce

  1. Send a long-running request.
  2. 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;
}`

zhkugh avatar Oct 24 '24 09:10 zhkugh