Log in through an untrusted domain

i installed nextcloud in docker on zimablade. if i connect from machines within the LAN everything is ok.SIfIf iIf inIf invIf inveIf i ageIf instead If instead I try to access via my VPN to the machine where I installed nextcloud I get the message :

Log in through an untrusted domain

Contact your administrator. If you are an administrator, change the “trusted_domains” setting in config/config.php like the example available in config/config.sample.php.

However, the “ config/config.php” file does not exist and therefore I cannot mofify or edit it. How can I solve it? Thank you all.

Are you using different URLs to access Nextcloud via the LAN versus via the VPN? Because otherwise if it works one way it should work the other way too.

However, the “ config/config.php” file does not exist and therefore I cannot mofify or edit it. How can I solve it?

Definitely exists. It’s the main Nextcloud config file. :slight_smile: It’s usually somewhere like /var/www/html/config/config.php within a Docker container.

1 Like

Yes, the IP addresses of the VPN to access the Nextcloud server are different…
I found the file “config.ph” hidden in “~/nextcloud/config/www/nextcloud/config/config.php ‘ using ’mlocate”.
I edited the files as described in the example file and now everything works. Thanks for the help.