From d9092a7e7695d0f8c10656bcfba275eee399ea40 Mon Sep 17 00:00:00 2001 From: rnsrk Date: Sat, 10 May 2025 15:08:08 +0200 Subject: [PATCH] new config sets for nextcloud --- override/set-configs.sh | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100755 override/set-configs.sh diff --git a/override/set-configs.sh b/override/set-configs.sh new file mode 100755 index 0000000..7cb6f68 --- /dev/null +++ b/override/set-configs.sh @@ -0,0 +1,22 @@ +#!/bin/bash + +# Print all commands and their arguments as they are executed. +set -x + +# Set the Redis configuration +php /var/www/html/occ --no-warnings config:system:set redis host --value="nextcloud-redis" +php /var/www/html/occ --no-warnings config:system:set redis port --value="6379" +php /var/www/html/occ --no-warnings config:system:set memcache.local --value="\OC\Memcache\APCu" +php /var/www/html/occ --no-warnings config:system:set memcache.distributed --value="\OC\Memcache\Redis" +php /var/www/html/occ --no-warnings config:system:set memcache.locking --value="\OC\Memcache\Redis" + +# Set trusted proxies +php /var/www/html/occ --no-warnings config:system:set trusted_proxies 0 --value="172.16.0.0/12" +php /var/www/html/occ --no-warnings config:system:set trusted_proxies 1 --value="192.168.0.0/16" +php /var/www/html/occ --no-warnings config:system:set trusted_proxies 2 --value="10.0.0.0/8" + +# Set trusted domains +php /var/www/html/occ --no-warnings config:system:set trusted_domains 0 --value="localhost" + +# Set the default phone region +php /var/www/html/occ --no-warnings config:system:set default_phone_region --value="DE"