mirror of
https://github.com/nextcloud/docker.git
synced 2025-04-14 08:26:09 +02:00
Add two parameters when Nextcloud is behind a proxy
This commit is contained in:
parent
b95484b409
commit
13977c4c5c
4 changed files with 35 additions and 0 deletions
|
@ -127,6 +127,16 @@ if expr "$1" : "apache" 1>/dev/null || [ "$1" = "php-fpm" ] || [ "${NEXTCLOUD_UP
|
|||
|
||||
fi
|
||||
fi
|
||||
|
||||
if [ -n "${NEXTCLOUD_OVERWRITEHOST+x}" ]; then
|
||||
echo "setting overwritehost…"
|
||||
run_as "php /var/www/html/occ config:system:set overwritehost --value=$NEXTCLOUD_OVERWRITEHOST"
|
||||
fi
|
||||
if [ -n "${NEXTCLOUD_OVERWRITEPROTOCOL+x}" ]; then
|
||||
echo "setting overwriteprotocol…"
|
||||
run_as "php /var/www/html/occ config:system:set overwriteprotocol --value=$NEXTCLOUD_OVERWRITEPROTOCOL"
|
||||
fi
|
||||
|
||||
fi
|
||||
|
||||
exec "$@"
|
||||
|
|
|
@ -127,6 +127,16 @@ if expr "$1" : "apache" 1>/dev/null || [ "$1" = "php-fpm" ] || [ "${NEXTCLOUD_UP
|
|||
|
||||
fi
|
||||
fi
|
||||
|
||||
if [ -n "${NEXTCLOUD_OVERWRITEHOST+x}" ]; then
|
||||
echo "setting overwritehost…"
|
||||
run_as "php /var/www/html/occ config:system:set overwritehost --value=$NEXTCLOUD_OVERWRITEHOST"
|
||||
fi
|
||||
if [ -n "${NEXTCLOUD_OVERWRITEPROTOCOL+x}" ]; then
|
||||
echo "setting overwriteprotocol…"
|
||||
run_as "php /var/www/html/occ config:system:set overwriteprotocol --value=$NEXTCLOUD_OVERWRITEPROTOCOL"
|
||||
fi
|
||||
|
||||
fi
|
||||
|
||||
exec "$@"
|
||||
|
|
|
@ -127,6 +127,16 @@ if expr "$1" : "apache" 1>/dev/null || [ "$1" = "php-fpm" ] || [ "${NEXTCLOUD_UP
|
|||
|
||||
fi
|
||||
fi
|
||||
|
||||
if [ -n "${NEXTCLOUD_OVERWRITEHOST+x}" ]; then
|
||||
echo "setting overwritehost…"
|
||||
run_as "php /var/www/html/occ config:system:set overwritehost --value=$NEXTCLOUD_OVERWRITEHOST"
|
||||
fi
|
||||
if [ -n "${NEXTCLOUD_OVERWRITEPROTOCOL+x}" ]; then
|
||||
echo "setting overwriteprotocol…"
|
||||
run_as "php /var/www/html/occ config:system:set overwriteprotocol --value=$NEXTCLOUD_OVERWRITEPROTOCOL"
|
||||
fi
|
||||
|
||||
fi
|
||||
|
||||
exec "$@"
|
||||
|
|
|
@ -130,7 +130,12 @@ The install and update script is only triggered when a default command is used (
|
|||
|
||||
- `NEXTCLOUD_UPDATE` (default: _0_)
|
||||
|
||||
If Nextcloud fails to automatically detect the hostname, protocol or webroot you can use the overwrite parameters inside the config/config.php.
|
||||
|
||||
- `NEXTCLOUD_OVERWRITEHOST` The overwritehost parameter is used to set the hostname of the proxy. You can also specify a port.
|
||||
- `NEXTCLOUD_OVERWRITEPROTOCOL` The overwriteprotocol parameter is used to set the protocol of the proxy. You can choose between the two options http and https.
|
||||
|
||||
These two parameters are available in v14.0+
|
||||
|
||||
# Running this image with docker-compose
|
||||
The easiest way to get a fully featured and functional setup is using a `docker-compose` file. There are too many different possibilities to setup your system, so here are only some examples what you have to look for.
|
||||
|
|
Loading…
Add table
Reference in a new issue