mirror of
https://github.com/nextcloud/nextcloudpi.git
synced 2026-01-10 15:12:01 -03:30
also save hostname in trusted domains
Signed-off-by: nachoparker <nacho@ownyourbits.com>
This commit is contained in:
parent
c75db63260
commit
cf4cfd81a8
@ -13,8 +13,8 @@ while :; do
|
||||
sleep 3
|
||||
done
|
||||
|
||||
# set "${TRUSTED_DOMAINS[ip]}"
|
||||
ncc config:system:set trusted_domains 1 --value=${ip}
|
||||
ncc config:system:set trusted_domains "${TRUSTED_DOMAINS[ip]}" --value="${ip}"
|
||||
ncc config:system:set trusted_domains "${TRUSTED_DOMAINS[hostname]}" --value="$(hostname -f)"
|
||||
|
||||
# we might need to retry if redis is not ready
|
||||
while :; do
|
||||
|
||||
@ -16,7 +16,8 @@ export NCDIR=/var/www/nextcloud
|
||||
export TRUSTED_DOMAINS=(
|
||||
[ip]=1 [dnsmasq]=2 [nc_domain]=3 [nextcloudpi-local]=5 [docker_overwrite]=6
|
||||
[nextcloudpi]=7 [nextcloudpi-lan]=8 [public_ip]=11 [letsencrypt_1]=12
|
||||
[letsencrypt_2]=13 [trusted_domain_1]=20 [trusted_domain_1]=21 [trusted_domain_1]=22)
|
||||
[letsencrypt_2]=13 [hostname]=14 [trusted_domain_1]=20 [trusted_domain_2]=21 [trusted_domain_3]=22
|
||||
)
|
||||
|
||||
command -v jq &>/dev/null || {
|
||||
apt-get update
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user