Skip to content

Commit

Permalink
ncp-web: fix timeout in long operations
Browse files Browse the repository at this point in the history
  • Loading branch information
nachoparker committed Nov 3, 2017
1 parent b27974f commit 74fd94c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
3 changes: 3 additions & 0 deletions nextcloudpi.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
5 changes: 5 additions & 0 deletions update.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 74fd94c

Please sign in to comment.