Nextcloud + docker error Access Through Untrusted Domain

ssh into docker host

docker ps
to find the name of the container with nextcloud_app replace 7b… below with this

docker exec -u 33 -it 7bb821cd67ed sh -c “/var/www/html/occ config:system:set trusted_domains 1 –value=bookmarks”

docker exec -u 33 -it 7bb821cd67ed sh -c “/var/www/html/occ config:system:set trusted_domains 2 –value=bookmarks.yourdomain.com”

value= is NOT the subnet clients are coming from
it is what the clients are typing into the address bar, so if the client uses a dns name add that as well, increment the #1 for each additional

sduncan