(SOLVED) Need help with Nextcloud and Reverse proxy

Notice: Page may contain affiliate links for which we may earn a small commission through services like Amazon Affiliates or Skimlinks.

Sejtan

Member
Oct 3, 2020
36
6
8
Hello

Has a small problem with NC and reverse proxy. When I try to log in via the app in Windows, then it does not work. When I log in via Chrome, everything works, but NC showing my ip there. Can someone check my config.php file if something is missing? I can not log in to NC if I delete my IP from "trusted_domains".
My reverse proxy is at 10.110.110.117.

<?php
$CONFIG = array (
'instanceid' => 'sfssfsfsfsfsfs',
'passwordsalt' => 'gagagsgfsgagagagag',
'secret' => 'gagagasgasgasg',
'trusted_domains' =>
array (
0 => 'cloud.freedomen.se',
1 => '10.110.110.150',
),
'datadirectory' => '/var/www/nextcloud-data',
'dbtype' => 'mysql',
'version' => '21.0.1.1',
'overwrite.cli.url' => 'https://cloud.freedomen.se',
'dbname' => 'nextcloud',
'dbhost' => 'localhost',
'dbport' => '',
'dbtableprefix' => 'oc_',
'mysql.utf8mb4' => true,
'dbuser' => 'sfsfsfsfsfsfsf',
'dbpassword' => 'sfsfsfsfsfsfsfsfs',
'default_phone_region' => 'SW',
'installed' => true,
'memcache.distributed' => '\OC\Memcache\Redis',
'memcache.local' => '\OC\Memcache\Redis',
'memcache.locking' => '\OC\Memcache\Redis',
'redis' => array(
'host' => 'localhost',
'port' => 6379,
),
'trusted_proxies' => '10.110.110.117',
'overwriteprotocol' => 'https',
);
 

Attachments

Last edited: