From: Thomas Bruederli Date: Wed, 5 Apr 2023 19:27:13 +0000 (+0200) Subject: Add ROUNDCUBEMAIL_REQUEST_PATH env to all variants X-Git-Url: http://git.99rst.org/?a=commitdiff_plain;h=913cd6f41774e69168511288e089f9592805d390;p=roundcube-roundcubemail-docker.git Add ROUNDCUBEMAIL_REQUEST_PATH env to all variants --- diff --git a/README.md b/README.md index 2ab791f..b26d215 100644 --- a/README.md +++ b/README.md @@ -32,7 +32,7 @@ The following env variables can be set to configure your Roundcube Docker instan `ROUNDCUBEMAIL_SMTP_PORT` - SMTP port number; defaults to `587` -`ROUNDCUBEMAIL_REQUEST_PATH` - Specify request path with reverse proxy; defaults to `/` +`ROUNDCUBEMAIL_REQUEST_PATH` - Specify request path with reverse proxy; defaults to `/`. See [defaults.inc.php](https://github.com/roundcube/roundcubemail/blob/master/config/defaults.inc.php) for possible values. `ROUNDCUBEMAIL_PLUGINS` - List of built-in plugins to activate. Defaults to `archive,zipdownload` diff --git a/apache/docker-entrypoint.sh b/apache/docker-entrypoint.sh index 87d75dc..8503934 100755 --- a/apache/docker-entrypoint.sh +++ b/apache/docker-entrypoint.sh @@ -100,8 +100,8 @@ if [[ "$1" == apache2* ]] || [ "$1" == php-fpm ]; then \$config['smtp_host'] = '${ROUNDCUBEMAIL_SMTP_SERVER}:${ROUNDCUBEMAIL_SMTP_PORT}'; \$config['temp_dir'] = '${ROUNDCUBEMAIL_TEMP_DIR}'; \$config['skin'] = '${ROUNDCUBEMAIL_SKIN}'; - \$config['plugins'] = array_filter(array_unique(array_merge(\$config['plugins'], ['${ROUNDCUBEMAIL_PLUGINS_PHP}']))); \$config['request_path'] = '${ROUNDCUBEMAIL_REQUEST_PATH}'; + \$config['plugins'] = array_filter(array_unique(array_merge(\$config['plugins'], ['${ROUNDCUBEMAIL_PLUGINS_PHP}']))); " > config/config.docker.inc.php if [ -e /run/secrets/roundcube_des_key ]; then diff --git a/fpm-alpine/docker-entrypoint.sh b/fpm-alpine/docker-entrypoint.sh index a1a4356..8503934 100755 --- a/fpm-alpine/docker-entrypoint.sh +++ b/fpm-alpine/docker-entrypoint.sh @@ -70,6 +70,7 @@ if [[ "$1" == apache2* ]] || [ "$1" == php-fpm ]; then : "${ROUNDCUBEMAIL_PLUGINS:=archive,zipdownload}" : "${ROUNDCUBEMAIL_SKIN:=elastic}" : "${ROUNDCUBEMAIL_TEMP_DIR:=/tmp/roundcube-temp}" + : "${ROUNDCUBEMAIL_REQUEST_PATH:=/}" if [ ! -e config/config.inc.php ]; then GENERATED_DES_KEY=`head /dev/urandom | base64 | head -c 24` @@ -99,6 +100,7 @@ if [[ "$1" == apache2* ]] || [ "$1" == php-fpm ]; then \$config['smtp_host'] = '${ROUNDCUBEMAIL_SMTP_SERVER}:${ROUNDCUBEMAIL_SMTP_PORT}'; \$config['temp_dir'] = '${ROUNDCUBEMAIL_TEMP_DIR}'; \$config['skin'] = '${ROUNDCUBEMAIL_SKIN}'; + \$config['request_path'] = '${ROUNDCUBEMAIL_REQUEST_PATH}'; \$config['plugins'] = array_filter(array_unique(array_merge(\$config['plugins'], ['${ROUNDCUBEMAIL_PLUGINS_PHP}']))); " > config/config.docker.inc.php diff --git a/fpm/docker-entrypoint.sh b/fpm/docker-entrypoint.sh index a1a4356..8503934 100755 --- a/fpm/docker-entrypoint.sh +++ b/fpm/docker-entrypoint.sh @@ -70,6 +70,7 @@ if [[ "$1" == apache2* ]] || [ "$1" == php-fpm ]; then : "${ROUNDCUBEMAIL_PLUGINS:=archive,zipdownload}" : "${ROUNDCUBEMAIL_SKIN:=elastic}" : "${ROUNDCUBEMAIL_TEMP_DIR:=/tmp/roundcube-temp}" + : "${ROUNDCUBEMAIL_REQUEST_PATH:=/}" if [ ! -e config/config.inc.php ]; then GENERATED_DES_KEY=`head /dev/urandom | base64 | head -c 24` @@ -99,6 +100,7 @@ if [[ "$1" == apache2* ]] || [ "$1" == php-fpm ]; then \$config['smtp_host'] = '${ROUNDCUBEMAIL_SMTP_SERVER}:${ROUNDCUBEMAIL_SMTP_PORT}'; \$config['temp_dir'] = '${ROUNDCUBEMAIL_TEMP_DIR}'; \$config['skin'] = '${ROUNDCUBEMAIL_SKIN}'; + \$config['request_path'] = '${ROUNDCUBEMAIL_REQUEST_PATH}'; \$config['plugins'] = array_filter(array_unique(array_merge(\$config['plugins'], ['${ROUNDCUBEMAIL_PLUGINS_PHP}']))); " > config/config.docker.inc.php diff --git a/templates/docker-entrypoint.sh b/templates/docker-entrypoint.sh index a1a4356..8503934 100644 --- a/templates/docker-entrypoint.sh +++ b/templates/docker-entrypoint.sh @@ -70,6 +70,7 @@ if [[ "$1" == apache2* ]] || [ "$1" == php-fpm ]; then : "${ROUNDCUBEMAIL_PLUGINS:=archive,zipdownload}" : "${ROUNDCUBEMAIL_SKIN:=elastic}" : "${ROUNDCUBEMAIL_TEMP_DIR:=/tmp/roundcube-temp}" + : "${ROUNDCUBEMAIL_REQUEST_PATH:=/}" if [ ! -e config/config.inc.php ]; then GENERATED_DES_KEY=`head /dev/urandom | base64 | head -c 24` @@ -99,6 +100,7 @@ if [[ "$1" == apache2* ]] || [ "$1" == php-fpm ]; then \$config['smtp_host'] = '${ROUNDCUBEMAIL_SMTP_SERVER}:${ROUNDCUBEMAIL_SMTP_PORT}'; \$config['temp_dir'] = '${ROUNDCUBEMAIL_TEMP_DIR}'; \$config['skin'] = '${ROUNDCUBEMAIL_SKIN}'; + \$config['request_path'] = '${ROUNDCUBEMAIL_REQUEST_PATH}'; \$config['plugins'] = array_filter(array_unique(array_merge(\$config['plugins'], ['${ROUNDCUBEMAIL_PLUGINS_PHP}']))); " > config/config.docker.inc.php