mirror of
https://github.com/TrezOne/docker-mods-uptime-kuma-timeout-fix.git
synced 2026-07-10 09:53:34 -04:00
Merge pull request #905 from linuxserver/nextcloud-notify-push-ipv6
add `::1` to trusted proxies as well
This commit is contained in:
@@ -32,14 +32,16 @@ if [ ! -f "$NOTIFY_PUSH_BIN" ]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# add to trusted proxies
|
# add to trusted proxies
|
||||||
if ! occ config:system:get trusted_proxies | grep -q "127.0.0.1"; then
|
for PROXY in '127.0.0.1' '::1'; do
|
||||||
NO_OF_PROXIES=$(occ config:system:get trusted_proxies --output=json | jq 'length')
|
if ! occ config:system:get trusted_proxies | grep -q "${PROXY}"; then
|
||||||
if [[ -z "${NO_OF_PROXIES}" ]]; then
|
NO_OF_PROXIES=$(occ config:system:get trusted_proxies --output=json | jq 'length')
|
||||||
NO_OF_PROXIES="0"
|
if [[ -z "${NO_OF_PROXIES}" ]]; then
|
||||||
|
NO_OF_PROXIES="0"
|
||||||
|
fi
|
||||||
|
echo "**** Adding notify_push (${PROXY}) to trusted proxies ****"
|
||||||
|
occ config:system:set trusted_proxies "${NO_OF_PROXIES}" --value="${PROXY}"
|
||||||
fi
|
fi
|
||||||
echo "**** Adding notify_push to trusted proxies ****"
|
done
|
||||||
occ config:system:set trusted_proxies "${NO_OF_PROXIES}" --value=127.0.0.1
|
|
||||||
fi
|
|
||||||
|
|
||||||
# run notify-push binary
|
# run notify-push binary
|
||||||
echo "**** Starting notify-push ****"
|
echo "**** Starting notify-push ****"
|
||||||
|
|||||||
Reference in New Issue
Block a user