Trusted domain - no access to configuration

Hello
I am having this error. Here is my situation as it is a little different than the others here.

I had my server hooked up to one isp lets call that ip OLD 142.
then i changed ISPs to NEW 188.

Now I get this message " Access through untrusted domain"
when trying to log in using my LOCAL IP address.

I have NO access to the ROOT as since the install for some reason this software has ALWAYS no matter when or where i have installed it has changed the username or password I had setup previously when i insatlled the Ubuntu on the server.

Is there a workaround to get into this using the local IP address AFTER my ISP has changed. There are VERY important files on this server that i need to access. Someone please help me I have to get to these files. Thank you all in advance.

Do you have no backup?

1 Like

You either need access to your config.php file (e.g. via SFTP or something) or CLI access to execute occ commands (although if you have CLI access you can also directly change the config.php file…)

1 Like

The mistake is that you are trying to access it this way at all. Why? Can you tell us how else you access it? Incidentally, it’s an illusion that you have any advantages by using the local IP address.

If you use Nextcloud 28 or lower you can use the app OCC Web. However, I strongly advise against trying to customise Trusted domains.

It’s a bit OT, but can you elaborate on this, or point me to something I can read up on?

From the documentation:

All URLs used to access your Nextcloud server must be whitelisted in your config.php file, under the trusted_domains setting. Users are allowed to log into Nextcloud only when they point their browsers to a URL that is listed in the trusted_domains setting.

So what am I missing here?

Thanks!

You must only whiltelist domains you use in your e…g. browser for access the Nextcloud e.g. cloud.server.tld for https://cloud.server.tld or 1.2.3.4 for https://1.2.3.4.

Do you really need “log in using my LOCAL IP address”? Why? Trusted Domains is not a address, it is a server address or e.g. reverse proxy.

1 Like