Added fastcgi_send_timeout and fastcgi_read_timeout to prevent 504 error

This commit is contained in:
Kevin Veen-Birkenbach 2022-01-29 10:21:29 +01:00
parent 1d3cd1e388
commit 88dfb5adfd
3 changed files with 9 additions and 2 deletions

View File

@ -79,6 +79,11 @@ To use occ run:
### Maria DB
Until NC24 MariaDB version has to be used.
## performance
### 504 Gateway Timeout
- https://serverfault.com/questions/178671/nginx-php-fpm-504-gateway-time-out-error-with-almost-zero-load-on-a-test-se
- https://help.nextcloud.com/t/solved-manual-lemp-install-php-fpm-timing-out/39070
#### See
- https://github.com/nextcloud/server/issues/25436
- https://help.nextcloud.com/t/update-to-next-cloud-21-0-2-has-get-an-error/117028/23?page=2

View File

@ -14,7 +14,7 @@
- name: configure nginx.conf
template: src=templates/nginx.conf.j2 dest=/home/administrator/volumes/docker/nextcloud/nginx.conf
notify: restart nginx
notify: recreate nextcloud
- name: "create /home/administrator/docker-compose/nextcloud/"
file:

View File

@ -23,6 +23,8 @@ http {
#tcp_nopush on;
keepalive_timeout 65;
fastcgi_send_timeout 600s;
fastcgi_read_timeout 600s;
#gzip on;