List Trusted Domain
sudo nextcloud.occ config:system:get trusted_domains
Add trusted domain
sudo nextcloud.occ config:system:set trusted_domains 1 --value=mydomain.com
sudo nextcloud.occ config:system:set trusted_domains 2 --value=192.168.0.100