Issue connecting from behind reverse proxy

I have many other threads regarding this but I haven’t found one similar to mine.
I have NC installed in a docker container and I have a nginx reverse proxy that redirect calls to the nextcloud docker container.
I am using everything only from my localnetwork 192.168.1.0/24.
The strange thing is that from my laptop I can access to NC without problems, but from my smartphone I am getting the following error:

We have detected multiple invalid login attempts from your IP. Therefore your next login is throttled up to 30 seconds

the table oc_bruteforce_attempts is empty.
The following is my config.php:

<?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,
    ),
  ),
  'memcache.distributed' => '\\OC\\Memcache\\Redis',
  'memcache.locking' => '\\OC\\Memcache\\Redis',
  'redis' => 
  array (
    'host' => 'nextcloud-redis',
    'password' => '*******',
    'port' => 6379,
  ),
  'upgrade.disable-web' => true,
  'passwordsalt' => '*****************',
  'secret' => '*********************',
  'trusted_domains' => 
  array (
    0 => 'localhost',
    1 => 'mgnet.net',
    2 => '192.168.1.109',
    3 => '172.22.0.8',
  ),
  'trusted_proxies' =>
  array (
    0 => '172.22.0.8',
  ),
 'forwarded-for-headers' =>
  array (
    0 => 'X-Forwarded-For',
    1 => 'HTTP_X_FORWARDED_FOR',
  ),
  'overwriteprotocol' => 'http',
  'overwritehost' => 'mgnet.net',
  'overwritecondaddr' => '^172\.22\.0\.8$',
  'datadirectory' => '/var/www/html/data',
  'dbtype' => 'mysql',
  'version' => '29.0.6.1',
  'overwrite.cli.url' => 'http://localhost',
  'dbname' => 'ncdb',
  'dbhost' => 'nextcloud-db',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  'mysql.utf8mb4' => true,
  'dbuser' => 'nextcloud',
  'dbpassword' => '************',
  'installed' => true,
  'instanceid' => 'xxxxxxxxxxxxxx',
  'filesystem_check_changes' => 0,
  "log_type" => "file",
  "logfile" => "nextcloud.log",
  "loglevel" => 3,
  "logdateformat" => "F d, Y H:i:s",
);

The strange thing is that from my laptop I can access to NC without problems, but from my smartphone I am getting the following error:

Are you using exact same URL to access in both cases? Do you have any errors or warnings under Administration settings->Overview (particularly regarding trusted_proxy, proxies, etc.)?

'overwritecondaddr' => '^172\.22\.0\.8$',

I assume 172.22.0.8 is your reverse proxy? You likely don’t need this conditional.

the table oc_bruteforce_attempts is empty.

This is expected behavior since these days the database backend (slower) is only used for bruteforce tracking if a memcache isn’t configured.

You may find the chapter on BFP helpful: Brute force protection — Nextcloud latest Administration Manual latest documentation

I have been using version 28.0.9 for long time and I have recently upgraded to 29.0.6.1. I am usinging docker-compose.yml in ARM63 architecture.
I have several errors in Administration->Overview :

Sorry my browser default is in italian.
I removed 'overwritecondaddr' => '^172\.22\.0\.8$',

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