After activating https i get error "untrusted domain"

Hi guys!

I installed NextCloud and it worked fine. i created a VirtualHost for http and nothing went wrong or had an error/problem.
Now i wanted to create a new VirtualHost for https. Apache sais its all good -> i connect to nextcloud over a browser -> Zertificate is active and accepted -> but nextcloud itself sais, that i connect from an untrusted domain… Do i have to change something in the config/config.php or what did i do wrong?

Thanks,
L0r

yes, you have to add your domain to the “trusted_domains”, in config.php

E.g.:

‘trusted_domains’ =>
array (
0 => ‘example.com’,
1 => ‘www.example.com’,
),

https://docs.nextcloud.com/server/18/admin_manual/configuration_server/config_sample_php_parameters.html?highlight=trusted_domains