From ee7868fb58d0ca22d488b77c1475e6778ec89bf7 Mon Sep 17 00:00:00 2001 From: "Simon L." Date: Wed, 22 May 2024 13:57:47 +0200 Subject: [PATCH] fix limiting php-fpm socket to certain ip-addresses Signed-off-by: Simon L --- Containers/nextcloud/start.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Containers/nextcloud/start.sh b/Containers/nextcloud/start.sh index a3f19f9d..0bbea739 100644 --- a/Containers/nextcloud/start.sh +++ b/Containers/nextcloud/start.sh @@ -151,7 +151,7 @@ done set -x # shellcheck disable=SC2235 -if [ "$THIS_IS_AIO" = "true" ] && ([ "$APACHE_PORT" = 443 ] || [ "$APACHE_IP_BINDING" = "127.0.0.1" ] || [ "$APACHE_IP_BINDING" = "::1" ]); then +if [ "$THIS_IS_AIO" = "true" ] && [ "$APACHE_PORT" = 443 ]; then IPv4_ADDRESS_APACHE="$(dig nextcloud-aio-apache A +short +search | grep '^[0-9.]\+$' | sort | head -n1)" IPv6_ADDRESS_APACHE="$(dig nextcloud-aio-apache AAAA +short +search | grep '^[0-9a-f:]\+$' | sort | head -n1)" IPv4_ADDRESS_MASTERCONTAINER="$(dig nextcloud-aio-mastercontainer A +short +search | grep '^[0-9.]\+$' | sort | head -n1)"