Nextcloud install - force domain instead IP

andre-almeid

Cadet
Joined
Sep 28, 2021
Messages
2
Hi,
I installed the new version of nextcloud (22.xx) to upgrade my old version (17.xx). I used the lazy mode installation via TrueNAS after migrated from FreeNAS. The installation works very well and I have access to my new instance. But when I force some configs like domain, this not work.

Code:
    'overwrite.cli.url' => 'https://MY-DOMAIN.COM',
    'overwriteprotocol' => 'https',
    'overwritehost' => 'MY-DOMAIN.COM',
    'forcessl' => true,
    'overwritewebroot' => '',
    'overwritecondaddr' => ’10.0.0.16’, (reverse proxy)
    'trusted_proxies' => ['127.0.0.1','10.0.0.16'],
    'htaccess.RewriteBase' => '/',


This config works well at my old version. I minimize the configuration to the 'overwrite.cli.url' but still not working.
When I call in browser https://MY-DOMAIN.COM is going to 10.0.0.32 (my internal IP) and the nextcloud works well, but convert to my local IP.

Screenshot 2021-09-28 at 17.09.41.png

redirect to 10.0.0.32 after https://MY-DOMAIN.COM

I tried a lot of configs and analyse multiple tutorials "how to install..." but I don't know what happens to have this behavior.
 
Top