Help with NextCloud and Cloudflare Tunnel setup

Hi guys, hope you can help me, is this my first post
Nice to meet you all
I have my casa os on debian 12, casa os version 0.4.15 with next cloud last version and cloudflared tunnel up and running
My issue is i have adgauardhome working with tunnel without any issue but i got the error on nextcloud about trusted 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.

My config file have the following information
‘trusted_domains’ =>
array (
0 => ‘localhost’,
1 => ‘my casaos internal IP’,
2 => ‘the domain of the tunnel the complete URL like nextcloud.mydomain.com
),

and don’t wotk i try to stop and start the nextcloud container same issue, what i’m doing wrong??
Can you please helpme?
Br

Looks like you are missing a comma after the domain.

URL like nextcloud.mydomain.com

Should be

URL like nextcloud.mydomain.com’,

thanks a lot @ds9 , but was a typo when i put the message the config is ok and still not work
let me show you

‘trusted_domains’ =>
array (
0 => ‘localhost’,
1 => ‘192.168.1.40’,
2 => ‘https://nextcloud.domain.xxx/’,
3 => ‘http://other-ip:7580/’,
),
‘datadirectory’ => ‘/var/www/html/data’,

about set number 3 is an URL that can i access with tailscale, that ip

Try removing the https:// and http:// and just put the domains. This is what mine looks like.

‘trusted_domains’ =>
array (
0 => ‘192.168.1.155’,
1 => ‘xxx.duckdns.org’,
2 => ‘nextcloud.xxx.duckdns.org’,
),

Thanks again man.
But i’m afraid that’s still have the same issue, i just update the debian, and reboot the server.
Also double check the config, restart the nextcloud
Same error, the domain is not in the trusted domain

‘trusted_domains’ =>
array (
0 => ‘localhost’,
1 => ‘192.168.1.40’,
2 => ‘nextcloud.midomain.vvv’,
3 => ‘100.xx.xx.xxx’,
),
‘datadirectory’ => ‘/var/www/html/data’,
‘dbtype’ => ‘pgsql’,

When are you getting the error?

Any time that i try to get the site from the outside url
I reinstall again and edit the config file
same result :frowning:
is frustating

Sorry, not really sure what else to try since I am not familiar with your setup. I don’t know why you keep getting the error if you are adding the domain correctly.