diff options
author | nachoparker <nacho@ownyourbits.com> | 2017-11-02 20:59:43 +0300 |
---|---|---|
committer | nachoparker <nacho@ownyourbits.com> | 2017-11-03 15:10:10 +0300 |
commit | 74fd94c88abe5769ad034733a9269ece9f3213c2 (patch) | |
tree | 8bf979ea2ce68fe57dfa0ab60860449d71767142 | |
parent | b27974fde31f1afd1b4cdd48927417eace0fa39c (diff) |
ncp-web: fix timeout in long operationsv0.31.29
-rw-r--r-- | nextcloudpi.sh | 3 | ||||
-rwxr-xr-x | update.sh | 5 |
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> @@ -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 |