How to add a new trusted domain to Nextcloud
Nextcloud is one of the most powerful and flexible locally hosted cloud servers.
Adding a new trusted domain
Log into (or Secure Shell into) your server hosting Nextcloud.
Open the necessary configuration file with the command:
general found in /var/www/nextcloud/config/config.php
NOTE: If you installed Nextcloud via snap packages, the configuration file will be found in the /var/snap/nextcloud/current/nextcloud/config directory.
If you get a permission denied message you need to run
sudo -i
to become a sudo user, then you will have permission to access the nextcloud directory.