We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a6c70d7 commit 3309dedCopy full SHA for 3309ded
root/etc/s6-overlay/s6-rc.d/svc-mod-nextcloud-notify-push/run
@@ -31,6 +31,16 @@ if [ ! -f "$NOTIFY_PUSH_BIN" ]; then
31
sleep infinity
32
fi
33
34
+# add to trusted proxies
35
+if ! occ config:system:get trusted_proxies | grep -q "127.0.0.1"; then
36
+ NO_OF_PROXIES=$(occ config:system:get trusted_proxies --output=json | jq 'length')
37
+ if [[ -z "${NO_OF_PROXIES}" ]]; then
38
+ NO_OF_PROXIES="0"
39
+ fi
40
+ echo "**** Adding notify_push to trusted proxies ****"
41
+ occ config:system:set trusted_proxies "${NO_OF_PROXIES}" --value=127.0.0.1
42
+fi
43
+
44
# run notify-push binary
45
echo "**** Starting notify-push ****"
46
exec \
0 commit comments