Error url trusted_domains

Hi everybody,

I have a problem with my Nextcloud, it is Docker container, in my LAN it’s ok but when I want to enter in WAN I have an error trusted_domains but in my config/config.sample.php I added my domain like this :

Adding a new trusted domain

Thanks in advance for your help.


Can you paste the relevant bit of your config please? Feel free to use blanks or dashes to hide anything sensitive.

Here is my configuration file nextcloud and my nginx configuration file.

If you need a specific file tell me.

Thanks Jason

The cli line doesn’t look right being localhost.

Here’s mine:

'trusted_domains' =>
array (
  0 => '',
  1 => '',
'overwrite.cli.url' => '',
'overwriteprotocol' => 'https',
'dbtype' => 'mysql',

The nginx 8000 > 80 proxy doesn’t look incorrect but I’m no nginx expert.

You don’t even get to the proxy, you have set a redirection to https (port 443 by default)
return 301 https://...

So you need to show us the relevant https-configuration of nginx.