Nextcloud easy_install.sh IP invalid
Related: #633 (closed)
Connecting to Nextcloud via IP address after a setup with everything left to default values results in Access through untrusted domain error.
The guilty line is:
https://gitlab.nic.cz/turris/os/packages/-/blob/master/net/nextcloud/files/easy_install.sh#L113
IP="`uci -q get network.lan.ipaddr`"
On the current default config, this results in 192.168.1.1/24
instead of 192.168.1.1
, which is not understood by Nextcloud trusted domains validator.
Maybe it could be changed (in the spirit of the alternative IP getting method) to something like:
IP="`uci -q get network.lan.ipaddr |sed -n 's|\([0-9.]*\).*|\1|p'`"
A workaround is to manually change the relevant trusted_domains
config entry.