From dfa61c8a73075d095d0e71198aba5e81a8745e8d Mon Sep 17 00:00:00 2001 From: "Dustin C. Hatch" Date: Wed, 22 Dec 2021 11:28:52 -0600 Subject: [PATCH] r/nextcloud: Increase Apache timeout Uploading large files can take a very long time. If the process takes longer than the configured timeout in Apache, it will be aborted and the client will receive an HTTP 504 Gateway Timeout error. Increasing the timeout will help alleviate this for files up to a certain size. Notably, it now lets me upload Signal backups without errors. --- roles/nextcloud/templates/nextcloud.httpd.conf.j2 | 2 ++ 1 file changed, 2 insertions(+) diff --git a/roles/nextcloud/templates/nextcloud.httpd.conf.j2 b/roles/nextcloud/templates/nextcloud.httpd.conf.j2 index 3e5201d..e884543 100644 --- a/roles/nextcloud/templates/nextcloud.httpd.conf.j2 +++ b/roles/nextcloud/templates/nextcloud.httpd.conf.j2 @@ -5,6 +5,8 @@ RewriteRule /.* https://%{SERVER_NAME}$0 Header always set \ Strict-Transport-Security "max-age=63072000; includeSubDomains" +Timeout 600 + DocumentRoot /usr/share/nextcloud Require all granted