From 143539811aec9c64abac6ee26882c1c9ad2c2445 Mon Sep 17 00:00:00 2001 From: Cristian Bourceanu <54813268+cristi-bourceanu@users.noreply.github.com> Date: Thu, 8 Oct 2020 06:52:02 +0100 Subject: [PATCH] Update nginx.conf nginx times out when sign up is done with the message "504 Gateway Timeout". This happens for the ssl one as well. I found that increasing the fastcgi timeout overcomes this issue. --- .examples/docker-compose/insecure/mariadb/fpm/web/nginx.conf | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.examples/docker-compose/insecure/mariadb/fpm/web/nginx.conf b/.examples/docker-compose/insecure/mariadb/fpm/web/nginx.conf index 62095270..fd316226 100644 --- a/.examples/docker-compose/insecure/mariadb/fpm/web/nginx.conf +++ b/.examples/docker-compose/insecure/mariadb/fpm/web/nginx.conf @@ -124,6 +124,10 @@ http { fastcgi_pass php-handler; fastcgi_intercept_errors on; fastcgi_request_buffering off; + + # Prevent 504 gateway timeout + fastcgi_send_timeout 200; + fastcgi_read_timeout 200; } location ~ ^\/(?:updater|oc[ms]-provider)(?:$|\/) {