Keep getting trusted domain error even after adding domain to config.php

Installed nextcloudpi out of the box onto RPi4. Everything seemed to be OK. I kept the default login password for ncp and can access it on my LAN at nextcloudpi.local and nextcloudp.local:4433.

In the config.php file I set my internet address from my ISP as a trusted domain.

I set up a reroute host record in noip to send requests to my router, type A record, for example, my domain is mycloud.webserve.com

I created a port forward rule in my router: forward http port 80 to my PI LAN address port 80 and forward https port 433 to my PI LAN address port 433. I’ve created similar port forwarding rules to my other local web servers and have had no issues.

Here is the issue:
Using Firefox I enter: mycloud.webserve.com and I get the nextcloud screen ‘Access through untrusted domain’…but I already set the ip address from my ISP as the trusted domain, so not sure why this is happening. Help please

Furthermore, if I enter my IP address provided by my ISP e.g. xxx.xxx.xxx.xxx, I get the nextcloud login, login with my username and pw that I set up during install, and then the dashboard page is displayed and can see files, add directories and files through the web interface, etc. All seems well.

And, If I enter http request to my domain created in noip, in my browser, I get the login screen, and firefox tells me that it is not a secure connection (I expected this)

And if I enter https request to my domain created in noip in my browser, I get the login screen, but firefox tells me that it is not a secure connection (I did not expect this – apparently it defaulted to http)

trusted_domains should contain the mycloud.webserve.com. It could also contain additional values, such as your IP address, depending on your use case. But it must at least include the domain used to primarily access your instance.

1 Like

Trusted domains configuration

By default, Nextcloud will accept HTTP requests addressed to localhost from the server itself. In your case you’d need to add a fully qualified domain name and not an IP address.

https://help.nextcloud.com/t/101-network-domain-and-dns/201882/3
Hosts & FQDN configuration

Sorry, but I cannot see your config.php with the trusted domain entries.

Thank you. in the trusted_domains section of config.php I entered the actual numeric IP address. Are you saying I should enter the fully qualified domain name (instead of the actual numeric IP address, or, in addition to the actual FQD)?

If you post the trusted domains of the config.php, we will be able, what is wrong and what is correct.
The FQDN must be mentioned there.

is missing as trusted domain, “nextcloudpi” is mentioned three times.

Edit:
The moderators removed a posting by thread-creator of the config.php above, because it contained secret data, which became not anonymized before posting.

Thanks for the suggestions. I fixed the problem by entering both the numeric IP address and the FQDN in the trusted domain section of config.php.

Also cleaned up the multiple entries of nextcloud.local.

J