Snap trusted domain 2

hello! I need to setup trusted domain, the url Snap Trusted Domain gave a path which does not work for me as there is no nextcloud folder in current.

I found some config files in /snap/nextcloud/current/htdocs/config, are these the right files to edit? The config file did not have trusted domains at all, will the changes stay in this location?

I understand changes can be lost for snap files depending on where i make the edits?

Version: Ubuntu 20.04
Nextcloud: Snap version of latest build using ubuntu installer

That path (/var/snap/nextcloud/current/nextcloud/config/config.php) should definitely work. If that’s not valid for you, something is broken.

in ubuntu the path was /snap/nextcloud/current/nextcloud/config/` without the var but theres no config.php there, only 3 folders

seems i had a type, the path was indeed correct, tried changing it, still did not work so im goina just reinstall the snap and install it from the correct url :slight_smile:

reinstalling did not fix the issue, you need to run a command:

sudo nextcloud.occ config:system:set trusted_domains 1

detailed steps here: