From 93bb6732f332a6ba792470fb9829d71843f161d3 Mon Sep 17 00:00:00 2001 From: Adrien le Maire Date: Fri, 30 Apr 2021 15:13:22 +0000 Subject: [PATCH] Update docker-entrypoint.sh --- roundcubemail/docker-entrypoint.sh | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/roundcubemail/docker-entrypoint.sh b/roundcubemail/docker-entrypoint.sh index 83758b8..82109e6 100644 --- a/roundcubemail/docker-entrypoint.sh +++ b/roundcubemail/docker-entrypoint.sh @@ -70,6 +70,10 @@ if [[ "$1" == apache2* ]] || [ "$1" == php-fpm ]; then : "${ROUNDCUBEMAIL_PLUGINS:=archive,zipdownload}" : "${ROUNDCUBEMAIL_SKIN:=larry}" : "${ROUNDCUBEMAIL_TEMP_DIR:=/tmp/roundcube-temp}" + : "${ROUNDCUBEMAIL_IMAP_CACHE_TTL:7d}" + : "${ROUNDCUBEMAIL_MESSAGES_CACHE_TTL:3m}" + : "${ROUNDCUBEMAIL_MESSAGES_CACHE_TRESHOLD:3mb}" + if [ ! -e config/config.inc.php ]; then ROUNDCUBEMAIL_DES_KEY=`head /dev/urandom | base64 | head -c 24` @@ -100,6 +104,11 @@ if [[ "$1" == apache2* ]] || [ "$1" == php-fpm ]; then \$config['temp_dir'] = '${ROUNDCUBEMAIL_TEMP_DIR}'; \$config['skin'] = '${ROUNDCUBEMAIL_SKIN}'; \$config['plugins'] = array_filter(array_unique(array_merge(\$config['plugins'], ['${ROUNDCUBEMAIL_PLUGINS_PHP}']))); + \$config['imap_cache'] = 'db'; + \$config['imap_cache_ttl'] = '${ROUNDCUBEMAIL_IMAP_CACHE_TTL}'; + \$config['messages_cache'] = 'db'; + \$config['messages_cache_threshold'] = '${ROUNDCUBEMAIL_MESSAGES_CACHE_THRESHOLD}'; + \$config['messages_cache_ttl'] = '${ROUNDCUBEMAIL_MESSAGES_CACHE_TTL}'; " > config/config.docker.inc.php if [ -e /run/secrets/roundcube_des_key ]; then