From e010c7b0e42194b1d5a74ee5e334a714844bd1ca Mon Sep 17 00:00:00 2001 From: "Simon L." Date: Mon, 12 Aug 2024 11:10:14 +0200 Subject: [PATCH] trust the whole docker network Signed-off-by: Simon L. --- start.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/start.sh b/start.sh index 4ac4ce4..0e9f8fd 100644 --- a/start.sh +++ b/start.sh @@ -20,7 +20,7 @@ done IPv4_ADDRESS="$(dig nextcloud-aio-caddy A +short +search | head -1)" # Bring it in CIDR notation # shellcheck disable=SC2001 -IPv4_ADDRESS="$(echo "$IPv4_ADDRESS" | sed 's|[0-9]\+$|1/32|')" +IPv4_ADDRESS="$(echo "$IPv4_ADDRESS" | sed 's|[0-9]\+$|0/16|')" CADDYFILE="$(sed "s|trusted_proxies.*|trusted_proxies static $IPv4_ADDRESS|" /Caddyfile)" echo "$CADDYFILE" > /Caddyfile