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 4bee6726e7
commit 4b88666091
3 changed files with 9 additions and 2 deletions

View File

@ -79,6 +79,11 @@ To use occ run:
### Maria DB ### Maria DB
Until NC24 MariaDB version has to be used. 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 #### See
- https://github.com/nextcloud/server/issues/25436 - 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 - 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 - name: configure nginx.conf
template: src=templates/nginx.conf.j2 dest=/home/administrator/volumes/docker/nextcloud/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/" - name: "create /home/administrator/docker-compose/nextcloud/"
file: file:

View File

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