Hi guys, I give up. I need help.
I have installed the docker. Everything fine. Now I'm trying to access it via NginxProxyManager. I have set up the host to redirect to https, 192.168.x.x, port 443, using a letsencrypt certificate. Works like a charm for literally every docker apart from this one. Worked for nextcloud flawlessly, but I got fed up with Nextcloud when it decided to die again after an update and turned out impossible to fix, because of this or that. Nevermind.
when I access locally with an IP - https://myip - everything is cool.
As soon as I try to access via myhost.example.com - it redirects to either https://_ or https://_/login
Here's my config.php:
<?php
$CONFIG = array (
'htaccess.RewriteBase' => '/',
'memcache.local' => '\\OC\\Memcache\\APCu',
'filelocking.enabled' => true,
'memcache.locking' => '\\OC\\Memcache\\Redis',
'redis' =>
array (
'host' => '/var/run/redis/redis-server.sock',
'port' => 0,
'timeout' => 0.0,
),
'instanceid' => 'blablabla',
'passwordsalt' => 'blablabla',
'secret' => 'blablabla',
'trusted_domains' =>
array (
0 => '192.168.0.210',
1 => 'nextcloud.example.com',
2 => 'owncloud.example.com',
),
'trusted_proxies' =>
array (
0 => '192.168.0.209',
),
'datadirectory' => '/data',
'overwrite.cli.url' => 'https://example.com',
'overwriteprotocol' => 'https',
'dbtype' => 'mysql',
'version' => '10.7.0.4',
'dbname' => 'owncloud',
'dbhost' => 'localhost',
'dbtableprefix' => 'oc_',
'mysql.utf8mb4' => true,
'dbuser' => 'owncloud',
'dbpassword' => 'fancydatabasepass',
'logtimezone' => 'UTC',
'apps_paths' =>
array (
0 =>
array (
'path' => '/config/www/owncloud/apps',
'url' => '/apps',
'writable' => false,
),
1 =>
array (
'path' => '/config/www/owncloud/apps-external',
'url' => '/apps-external',
'writable' => true,
),
),
'installed' => true,
'mail_smtpmode' => 'smtp',
'mail_smtpsecure' => 'ssl',
'mail_sendmailmode' => 'smtp',
'mail_from_address' => 'mylogin',
'mail_domain' => 'gmail.com',
'mail_smtpauthtype' => 'LOGIN',
'mail_smtpauth' => 1,
'mail_smtphost' => 'smtp.gmail.com',
'mail_smtpport' => '465',
'mail_smtpname' => 'mylogin',
'mail_smtppassword' => 'mypass',
);
The result is https://_ - as on the attached picture.
Some time ago when I switched to http it seemed to work, the only problem was - I was able to see the owncloud interface, but the files would not load at all. The second I switched to local IP - works like a charm. Sooo yes, It technically could be the NginxProxyManager docker screwing things up. But it works for literally everything else, and it did work for nextcloud as well. Please help guys, I don't know what to do anymore.