mirror of
https://github.com/linuxserver/docker-mods.git
synced 2026-03-23 00:05:28 +08:00
add to trusted proxies
This commit is contained in:
parent
a6c70d706e
commit
3309ded2cc
@ -31,6 +31,16 @@ if [ ! -f "$NOTIFY_PUSH_BIN" ]; then
|
||||
sleep infinity
|
||||
fi
|
||||
|
||||
# add to trusted proxies
|
||||
if ! occ config:system:get trusted_proxies | grep -q "127.0.0.1"; then
|
||||
NO_OF_PROXIES=$(occ config:system:get trusted_proxies --output=json | jq 'length')
|
||||
if [[ -z "${NO_OF_PROXIES}" ]]; then
|
||||
NO_OF_PROXIES="0"
|
||||
fi
|
||||
echo "**** Adding notify_push to trusted proxies ****"
|
||||
occ config:system:set trusted_proxies "${NO_OF_PROXIES}" --value=127.0.0.1
|
||||
fi
|
||||
|
||||
# run notify-push binary
|
||||
echo "**** Starting notify-push ****"
|
||||
exec \
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user