Nextcloud version (eg, 27.0.5): 27.0.1
Operating system and version (eg, Ubuntu 20.04): truenas scale
Apache or nginx version (eg, Apache 2.4.25): nginx
PHP version (eg, 7.4): ?
The issue you are facing:
I have nextcloud up and running in a truenas scale (the linux version) as an app. Whenever I go to nextcloud i want to go to the URL https://cloud.xxx.com:zzzz.
Whenver I log in, I am immediate redirect to the localhost, https://192.168.x.x:zzzz
Now as long as I am on the localhost this works, but obviously if I am outside my network it’s causing problems and updating is a problem, etc.
Your first thought would be just update the config.php file, well I’ve done that. For example, when I click on the logo in the top right hand corner the logo links to: https://192.168.1.104:zzzz/
Any thoughts?
The output of your Nextcloud log in Admin > Logging:
<?php
$CONFIG = array (
'htaccess.RewriteBase' => '/',
'memcache.local' => '\\OC\\Memcache\\APCu',
'apps_paths' =>
array (
0 =>
array (
'path' => '/var/www/html/apps',
'url' => '/apps',
'writable' => false,
),
1 =>
array (
'path' => '/var/www/html/custom_apps',
'url' => '/custom_apps',
'writable' => true,
),
),
'overwritehost' => 'https://cloud.xxxx.com:zzzz',
'overwriteprotocol' => 'https',
'trusted_proxies' =>
array (
0 => '127.0.0.1',
1 => 'xxx.xxx.xxx.xxx:zzzz',
2 => 'cloud.xxxx.com:9495',
),
'passwordsalt' => 'lol',
'secret' => 'lol',
'trusted_domains' =>
array (
0 => 'localhost',
1 => '192.168.1.104',
2 => 'cloud.xxxx.com',
3 => 'www.cloud.xxxx.com',
4 => 'cloud.xxxx.com:zzzz',
),
'datadirectory' => '/var/www/html/data',
'dbtype' => 'pgsql',
'version' => '27.0.2.1',
The output of your Apache/nginx/system log in /var/log/____
:
I’m seeing this a lot, not any errors I can tell
172.16.0.1 - - [16/Aug/2023:14:37:15 +0000] "GET /status.php HTTP/2.0" 200 170 "-" "kube-probe/1.25"```