new config sets for nextcloud
This commit is contained in:
parent
6917c6324c
commit
d9092a7e76
1 changed files with 22 additions and 0 deletions
22
override/set-configs.sh
Executable file
22
override/set-configs.sh
Executable file
|
|
@ -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"
|
||||
Loading…
Add table
Add a link
Reference in a new issue