From: Julien Janier Date: Wed, 5 Apr 2023 19:19:46 +0000 (-0400) Subject: add support for request_path (#208) X-Git-Url: http://git.99rst.org/?a=commitdiff_plain;h=7958d9d37ec0d04fddb1284b411ab0ded2cb55c0;p=roundcube-roundcubemail-docker.git add support for request_path (#208) Co-authored-by: Julien Janier --- diff --git a/README.md b/README.md index 0b606d4..2ab791f 100644 --- a/README.md +++ b/README.md @@ -32,6 +32,8 @@ 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_PLUGINS` - List of built-in plugins to activate. Defaults to `archive,zipdownload` `ROUNDCUBEMAIL_SKIN` - Configures the default theme. Defaults to `larry` diff --git a/apache/docker-entrypoint.sh b/apache/docker-entrypoint.sh index a1a4356..87d75dc 100755 --- a/apache/docker-entrypoint.sh +++ b/apache/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` @@ -100,6 +101,7 @@ 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['request_path'] = '${ROUNDCUBEMAIL_REQUEST_PATH}'; " > config/config.docker.inc.php if [ -e /run/secrets/roundcube_des_key ]; then