Hi all, I'm now really struggling to fix my Nextcloud. It was working perfectly for months, but unfortunately my son turned off my server and since then I'm lost.
I'm using Nginx Proxy manager & Cloudflare tunnels with my own domain. Need to say that I've managed to fix all other applications running like that (Sonarr, Radarr, SABnzbd...), nextcloud is the only one not working.
Nginx Proxy setup
Nextcloud config
<?php
$CONFIG = array (
'memcache.local' => '\\OC\\Memcache\\APCu',
'datadirectory' => '/data',
'instanceid' => 'SET BUT CHANGED BECAUSE OF PRIVACY',
'passwordsalt' => 'SET BUT CHANGED BECAUSE OF PRIVACY',
'secret' => 'SET BUT CHANGED BECAUSE OF PRIVACY',
'trusted_domains' =>
array (
0 => '192.168.9.187:444',
1 => 'nextcloud.MYDOMAIN.XYZ',
),
'overwrite.cli.url' => 'https://nextcloud.MYDOMAIN.XYZ',
'overwritehost' => 'nextcloud.MYDOMAIN.XYZ',
'overwriteprotocol' => 'https',
'dbtype' => 'mysql',
'version' => '22.1.1.2',
'dbname' => 'nextcloud',
'dbhost' => '192.168.9.187:3306',
'dbport' => '',
'dbtableprefix' => 'oc_',
'mysql.utf8mb4' => true,
'dbuser' => 'SET BUT CHANGED BECAUSE OF PRIVACY',
'dbpassword' => 'SET BUT CHANGED BECAUSE OF PRIVACY',
'installed' => true,
'maintenance' => false,
);
If I remove overwrite.cli.url; overwritehost; overwriteprotocol I can access nextcloud through IP correctly. But when I try to set it up with nginx and cloudflare tunnel, I will get:
I'd appreciate if you could point me in the right direction..