mirror of
https://github.com/nextcloud/all-in-one.git
synced 2026-02-08 23:08:01 +00:00
notify-push & whiteboard: URL-encode passwords
Signed-off-by: Simon L. <szaimen@e.mail.de>
This commit is contained in:
parent
7f8be1bc3d
commit
84c581b8bf
4 changed files with 9 additions and 1 deletions
|
|
@ -11,6 +11,7 @@ RUN set -ex; \
|
|||
netcat-openbsd \
|
||||
tzdata \
|
||||
bash \
|
||||
jq \
|
||||
openssl; \
|
||||
# Give root a random password
|
||||
echo "root:$(openssl rand -base64 12)" | chpasswd; \
|
||||
|
|
|
|||
|
|
@ -70,6 +70,10 @@ if [ "$POSTGRES_USER" = nextcloud ]; then
|
|||
export POSTGRES_USER
|
||||
fi
|
||||
|
||||
# URL-encode passwords
|
||||
POSTGRES_PASSWORD="$(jq -rn --arg v "$POSTGRES_PASSWORD" '$v|@uri')"
|
||||
REDIS_HOST_PASSWORD="$(jq -rn --arg v "$REDIS_HOST_PASSWORD" '$v|@uri')"
|
||||
|
||||
# Postgres root cert
|
||||
if [ -f "/nextcloud/data/certificates/POSTGRES" ]; then
|
||||
CERT_OPTIONS="?sslmode=verify-ca&sslrootcert=/nextcloud/data/certificates/ca-bundle.crt"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue