fstest: switch to port forwarding now Owncloud disallows wildcards

A recent security fix in the Owncloud container now causes it to
disallow wildcards in the OWNCLOUD_TRUSTED_DOMAINS setting.

This patch works around the problem by using port forwarding from the
host so we can keep the domain name constant.
This commit is contained in:
Nick Craig-Wood 2022-12-15 11:33:31 +00:00
parent a171497a8b
commit ec3cee89d3
1 changed files with 5 additions and 3 deletions

View File

@ -5,6 +5,7 @@ set -e
NAME=owncloud
USER=rclone
PASS=HarperGrayerFewest5
PORT=38081
. $(dirname "$0")/docker.bash
@ -17,15 +18,16 @@ start() {
-e "OWNCLOUD_ADMIN_PASSWORD=$PASS" \
-e "OWNCLOUD_MYSQL_UTF8MB4=true" \
-e "OWNCLOUD_REDIS_ENABLED=false" \
-e "OWNCLOUD_TRUSTED_DOMAINS=*.*.*.*" \
-e "OWNCLOUD_TRUSTED_DOMAINS=127.0.0.1" \
-p 127.0.0.1:${PORT}:8080 \
owncloud/server
echo type=webdav
echo url=http://$(docker_ip):8080/remote.php/webdav/
echo url=http://127.0.0.1:${PORT}/remote.php/webdav/
echo user=$USER
echo pass=$(rclone obscure $PASS)
echo vendor=owncloud
echo _connect=$(docker_ip):8080
echo _connect=127.0.0.1:${PORT}
}
. $(dirname "$0")/run.bash