Allow searching in large mailboxes to take up to 5 minutes

Two different timeouts needs to be set:
  - imap_timeout in roundcube
  - fastcgi_read_timeout in nginx as rouncube imap sessions are going through HTTPS

Closes #1715.
This commit is contained in:
Francois Deppierraz 2020-01-23 15:56:55 +01:00
parent ab5ce01bdd
commit 4170750743
2 changed files with 6 additions and 1 deletions

View File

@ -57,6 +57,11 @@ tools/editconf.py /etc/php/7.2/fpm/php.ini -c ';' \
tools/editconf.py /etc/php/7.2/fpm/pool.d/www.conf -c ';' \
env[PATH]=/usr/local/bin:/usr/bin:/bin \
# Increase the default fastcgi read timeout, this is reached when searching
# large mailboxes from rouncube. See #1715.
tools/editconf.py /etc/nginx/nginx.conf -s \
fastcgi_read_timeout="300;"
# Configure php-fpm based on the amount of memory the machine has
# This is based on the nextcloud manual for performance tuning: https://docs.nextcloud.com/server/17/admin_manual/installation/server_tuning.html
# Some synchronisation issues can occur when many people access the site at once.

View File

@ -115,7 +115,7 @@ cat > $RCM_CONFIG <<EOF;
'verify_peer_name' => false,
),
);
\$config['imap_timeout'] = 15;
\$config['imap_timeout'] = 300;
\$config['smtp_server'] = 'tls://127.0.0.1';
\$config['smtp_conn_options'] = array(
'ssl' => array(