Nextcloud "Access though untrusted domain"

I am new to Rockstor and pretty new to Linux in general. The Rockstor install was smooth and without any issues. I am trying to get Netcloud installed but when I open the UI I get this message:

“Access through untrusted domain

Please contact your administrator. If you are an administrator, edit the “trusted_domains” setting in config/config.php like the example in config.sample.php.

Further information how to configure this can be found in the documentation.”

I have gone through both the Rockstor and Nextcloud docs and I am in need of assistance. Where can I find the config/config.php file?

Thank you in advance for any guidance

Kevin

@klaatu welcome to the Rockstor community.

For NextCloud, you can find the configuration files underneath the share that you defined during the Rockon setup. As you remember, during the first step it should have asked you for a share, which will store all of the relevant NextCloud data.

You can get to that share via the command line (either use the WebUI’s system shell, or a remote SSH connection like PuTTY) - or, if you have exported that particular share as a Samba share, you can get to it using your Windows machine.

Under Linux, the share can be found under the mnt2 directory, e.g.

/mnt2/nextcloud-config and within that there is another directory config. the config.php only shows up once you’ve created the first admin user and clicked install on the first screen.

If you don’t even get that far, e.g. because you can only access Rockstor via <ip address> instead of <Rockstor-server-name> and then use the WebUI button within the Rockon, you can first try to see whether getting to the initial screen (and create a user) by entering https:<rockstor-server-name>:8888, or if that doesn’t work, pre-create a config file based on the sample file at the above mentioned location that contains the Rockstor IP as a trusted domain.

At least that’s what I have observed, though I am currently not actively using NextCloud. I hope, some other forum members can give additional information.

2 Likes