diff --git a/Containers/nextcloud/config/reverse-proxy.config.php b/Containers/nextcloud/config/reverse-proxy.config.php index 667be312..c8650913 100644 --- a/Containers/nextcloud/config/reverse-proxy.config.php +++ b/Containers/nextcloud/config/reverse-proxy.config.php @@ -18,8 +18,3 @@ $overwriteCondAddr = getenv('OVERWRITECONDADDR'); if ($overwriteCondAddr) { $CONFIG['overwritecondaddr'] = $overwriteCondAddr; } - -$trustedProxies = getenv('TRUSTED_PROXIES'); -if ($trustedProxies) { - $CONFIG['trusted_proxies'] = array_filter(array_map('trim', explode(' ', $trustedProxies))); -} diff --git a/Containers/nextcloud/entrypoint.sh b/Containers/nextcloud/entrypoint.sh index 2e830078..8778ab02 100644 --- a/Containers/nextcloud/entrypoint.sh +++ b/Containers/nextcloud/entrypoint.sh @@ -250,6 +250,7 @@ elif [ "$(php /var/www/html/occ config:app:get notify_push enabled)" = "no" ]; t else php /var/www/html/occ app:update notify_push fi +php /var/www/html/occ config:system:set trusted_proxies 0 --value="127.0.0.1" php /var/www/html/occ config:app:set notify_push base_endpoint --value="https://$NC_DOMAIN/push" # Collabora diff --git a/php/containers.json b/php/containers.json index b50fa006..f35a3713 100644 --- a/php/containers.json +++ b/php/containers.json @@ -114,7 +114,6 @@ "NEXTCLOUD_DATA_DIR=/mnt/ncdata", "OVERWRITEHOST=%NC_DOMAIN%", "OVERWRITEPROTOCOL=https", - "TRUSTED_PROXIES=127.0.0.1", "TURN_SECRET=%TURN_SECRET%", "SIGNALING_SECRET=%SIGNALING_SECRET%", "AIO_URL=%AIO_URL%"