I’m turning crazy with my fresh Nextcloud Docker instance…
I’ve setup everything like i did times before, that’s not my first OC/NC ! Anyway… i’m here for that basic ‘trusted hosts’ thing…
My NC container is deployed following the NC documentation, i access it thru a nginx reverse proxy, where https is configured.
So, if i access my NC from https://docker@IP:container_port, it works
the /var/www/html folder is mounted as volume on my host filesystem, same thing for the data directory. I’ve configured the config.php like that…
'trusted_domains' => array ( 1 => '192.168.0.100:8080', 2 => 'cloud.mydomain.com', ),
tried from the array config.sample.php syntax as well:
'trusted_domains' => [ 1 => '192.168.0.100:8080', 2 => 'cloud.mydomain.com', ],
tried with that setting…
'overwrite.cli.url' => 'https://cloud.mydomain.com'
restarted web service, containers, doesn’t work.
-> I’ve tried with the php occ commands as well, the file is correlty edited…
docker exec --user www-data nextcloud_app_1 php occ config:system:set trusted_domains 1 --value=cloud.mydomain.com
-> I’ve tried with the NEXTCLOUD_TRUSTED_DOMAINS environment variable in docker compose file as well, same thing !
[...] environment: - NEXTCLOUD_TRUSTED_DOMAINS='cloud.mydomain.com 192.168.0.100:8080'
Tried to reverse the @ip and domain name, tried to remove the @ip adress and let only the domain name : doesn’t work, and i can’t access by the ip no more. (so it’s seems that i edit the correct file… !)
you guys have others ideas… ?
Thanks in advance !