Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/nextcloudpi.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornachoparker <nacho@ownyourbits.com>2017-11-02 20:59:43 +0300
committernachoparker <nacho@ownyourbits.com>2017-11-03 15:10:10 +0300
commit74fd94c88abe5769ad034733a9269ece9f3213c2 (patch)
tree8bf979ea2ce68fe57dfa0ab60860449d71767142
parentb27974fde31f1afd1b4cdd48927417eace0fa39c (diff)
ncp-web: fix timeout in long operationsv0.31.29
-rw-r--r--nextcloudpi.sh3
-rwxr-xr-xupdate.sh5
2 files changed, 8 insertions, 0 deletions
diff --git a/nextcloudpi.sh b/nextcloudpi.sh
index 581bcef0..f6dafb46 100644
--- a/nextcloudpi.sh
+++ b/nextcloudpi.sh
@@ -42,6 +42,9 @@ Listen 4443
SSLCertificateFile /etc/ssl/certs/ssl-cert-snakeoil.pem
SSLCertificateKeyFile /etc/ssl/private/ssl-cert-snakeoil.key
+ # 2 days to avoid very big backups requests to timeout
+ TimeOut 172800
+
<IfModule mod_authnz_external.c>
DefineExternalAuth pwauth pipe /usr/sbin/pwauth
</IfModule>
diff --git a/update.sh b/update.sh
index 1d0a8ed3..9b9fc81b 100755
--- a/update.sh
+++ b/update.sh
@@ -198,6 +198,11 @@ EOF
# log adjustment for wizard
test -f /home/www/ncp-launcher.sh && \
grep -q sleep /home/www/ncp-launcher.sh || echo "sleep 0.5 && echo \"\" > /run/ncp.log" >> /home/www/ncp-launcher.sh
+
+ # 2 days to avoid very big backups requests to timeout
+ grep -q TimeOut /etc/apache2/sites-enabled/ncp.conf || \
+ sed -i '/SSLCertificateKeyFile/aTimeOut 172800' /etc/apache2/sites-enabled/ncp.conf
+
}
# License