Which config.php is the right one and how to add trusted domains correctly

Hello @Eegxeta,

welcome to the Nextcloud community! :handshake: and thanks for supporting the snap

which documentation was that? see GitHub - nextcloud-snap/nextcloud-snap: ☁️📦 Nextcloud packaged as a snap and Nextcloud snap wiki and Nextcloud latest admin manual for official documentation and you’ll find some how-to’s here in the forum:

and especially:

that looks like an IP-address and not a domain name, try FQDN instead, see setting trusted domains and Hosts & FQDN configuration

also look at 101: Network, domain and DNS and especially reference to 101: VPN service restrictions.

please contact the Netbird folks for support if you’re facing connectivity issues.