ec3cee89d3
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.
33 lines
845 B
Bash
Executable file
33 lines
845 B
Bash
Executable file
#!/bin/bash
|
|
|
|
set -e
|
|
|
|
NAME=owncloud
|
|
USER=rclone
|
|
PASS=HarperGrayerFewest5
|
|
PORT=38081
|
|
|
|
. $(dirname "$0")/docker.bash
|
|
|
|
start() {
|
|
docker run --rm -d --name $NAME \
|
|
-e "OWNCLOUD_DOMAIN=${OWNCLOUD_DOMAIN}" \
|
|
-e "OWNCLOUD_DB_TYPE=sqlite" \
|
|
-e "OWNCLOUD_DB_NAME=owncloud.db" \
|
|
-e "OWNCLOUD_ADMIN_USERNAME=$USER" \
|
|
-e "OWNCLOUD_ADMIN_PASSWORD=$PASS" \
|
|
-e "OWNCLOUD_MYSQL_UTF8MB4=true" \
|
|
-e "OWNCLOUD_REDIS_ENABLED=false" \
|
|
-e "OWNCLOUD_TRUSTED_DOMAINS=127.0.0.1" \
|
|
-p 127.0.0.1:${PORT}:8080 \
|
|
owncloud/server
|
|
|
|
echo type=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=127.0.0.1:${PORT}
|
|
}
|
|
|
|
. $(dirname "$0")/run.bash
|