File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -17,9 +17,9 @@ export ncc=/usr/local/bin/ncc
1717unset TRUSTED_DOMAINS
1818declare -A TRUSTED_DOMAINS
1919export TRUSTED_DOMAINS=(
20- [ip ]=1 [dnsmasq]=2 [nc_domain]=3 [nextcloudpi-local]=5 [docker_overwrite]=6
21- [nextcloudpi]=7 [nextcloudpi-lan]=8 [public_ip]=11 [letsencrypt_1]=12
22- [letsencrypt_2]=13 [hostname]=14 [trusted_domain_1]=20 [trusted_domain_2]=21 [trusted_domain_3]=22
20+ [' ip ' ]=1 [' dnsmasq' ]=2 [' nc_domain' ]=3 [' nextcloudpi-local' ]=5 [' docker_overwrite' ]=6
21+ [' nextcloudpi' ]=7 ' [nextcloudpi-lan' ]=8 [' public_ip' ]=11 [' letsencrypt_1' ]=12
22+ [' letsencrypt_2' ]=13 [' hostname' ]=14 [' trusted_domain_1' ]=20 [' trusted_domain_2' ]=21 [' trusted_domain_3' ]=22
2323)
2424
2525command -v jq & > /dev/null || {
@@ -127,7 +127,7 @@ function set-nc-domain()
127127 proto=" $( ncc config:system:get overwriteprotocol) " || true
128128 [[ " ${proto} " == " " ]] && proto=" https"
129129 local url=" ${proto} ://${domain%*/ } "
130- [[ " $2 " == " --no-trusted-domain" ]] || ncc config:system:set trusted_domains " ${TRUSTED_DOMAINS[nc-domain]} " --value=" ${domain%*/ } "
130+ [[ " $2 " == " --no-trusted-domain" ]] || ncc config:system:set trusted_domains " ${TRUSTED_DOMAINS[' nc-domain' ]} " --value=" ${domain%*/ } "
131131 ncc config:system:set overwrite.cli.url --value=" ${url} /"
132132 if is_ncp_activated && is_app_enabled notify_push; then
133133 ncc config:system:set trusted_proxies 11 --value=" 127.0.0.1"
You can’t perform that action at this time.
0 commit comments