Truenas Nextcloud goes to IP not Domain

Hey there,
im new to Nextcloud and Truenas.
My Setup:
Homeserver with Truenas Scale on it.
Ports 80 and 443 from Router to Nginx ports.
From Nginx to Nextcloud instance on Port 9001.

Nextcloud version: 28.0.2 from the Truenas Catalog

The problem is that the Domain goes to the Internal Ip at the moment and i can´t figure out why this is happening.
If i try it outside my network i get the Message:
Site not Found
The Site was not found on the server or is not permitted to be displayed.

In the app i can get to the login screen and if i try to Ligon i get an infinite loading circle.

),
‘overwritehost’ => ‘mydomain:9001’,
‘overwriteprotocol’ => ‘https’,
‘trusted_proxies’ =>
array (
0 => ‘127.0.0.1’,
),
‘upgrade.disable-web’ => true,
‘passwordsalt’ => ‘',
‘secret’ => '
**’,
‘trusted_domains’ =>
array (
0 => ‘localhost’,
1 => ‘internal Ip’,
2 => ‘mydomain’,
),
‘datadirectory’ => ‘/var/www/html/data’,
‘dbtype’ => ‘pgsql’,
‘version’ => ‘28.0.2.5’,
‘overwrite.cli.url’ => ‘https://mydomain’,
‘dbname’ => ‘nextcloud’,
‘dbhost’ => ‘nextcloud-postgres:5432’,
‘dbport’ => ‘’,

I tried other combinations of this config as well.
I tried everywhere where my domain is displayed alone and nothing worked.

Has anyone an idea whats wrong?

Add your domain there.
https://docs.nextcloud.com/server/stable/admin_manual/configuration_server/occ_command.html#config-commands-label

Hey there,
tried putting the Domain in there it still does not work.

If i put the local Truenas port into nginx I can go to my truenas via domain name.
Same with plex.

Only nextcloud doesn´t seem to work for some reason.

Maybe this might cause the issue.

Normally you call with http://truenas the truenas nginx page(s) and with http:/truenas/nextcloud the Nextcloud-instance.

So your /var/log/nginx/access_log should mention the reason, whether Nexctloud could be called and the nextcloud.log should mention, wthether the call using the hostname could read Nextcloud.

That may be the case if i Installed the Truechart version of Nextcloud.
Wich i tested but i cant realy get that one to Fuction properly.
I get errors every time i Install it and it refuses to Deploy.
If you have an indepth Guide for the Installation procedure of the Truechart version i would appreciate that.
(Yes i installed Traefik and the other dependency app when i tried that version)

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.