Dataplicity nextcloud access saying access from a untrusted domain

I have installed nextcloud in my raspberry pi and can access it locally.
For remote access from outside network, i used dataplicity, which gives a address to access like xyz-123.dataplicity.io.
Clicking the link opens the apache server home page… But when i open nextcloud by typing url xyz-123.dataplicity.io/nextcloud i get locked for access through a unauthorised domain.
I added xyz-123.dataplicity.io to trusted domain in nextcloud config file but still the problem persists.
Plz help.

are you running nextcloud behind a proxy to access it from outside?
if so add the name of this proxy as well.

I am not using any proxy.
I have my router connected to raspberry pi via ethernet and my public ip address is dynamic. I am using dataplicity as i cannot port forward my port 80 as it is locked by ISP.

Im experiencing the same issue

solved editing the config.php file:

sudo nano /var/snap/nextcloud/current/nextcloud/config/config.php
(add the “1 =>” line with the Dataplicity server address)

‘trusted_domains’ =>
array (
0 => ‘localhost’,
1 => ‘floppiest-pointer-0000.dataplicity.io’,
),