Can't login from iOS talk app

Summary of the issue:

Can’t login from NextCloud Talk App it keeps loading after entering email and password, I can login from NextCloud Files App. Tried to import account, it keeps loading.

I opened 443, 80 port from router. Router address 192.168.0.1
Server address: my_local_server_ip_address (192.168.0.x)
Public IP: my_public_ip_address (x.x.x.x)
As mentioned, I installed Nextcloud from Casaos it runs on port 7580.

I created a subdomain, sub.domain.com point to my_public_ip_address and map it to http://my_local_server_ip_address:7580 using NPM.

Here 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' => 'redis-nextcloud',
    'password' => '',
    'port' => 6379,
  ),
  'upgrade.disable-web' => true,
  'passwordsalt' => 'REDACTED',
  'secret' => 'REDACTED',
  'trusted_domains' => 
  array (
    0 => 'localhost',
    1 => 'my_local_server_ip_address ',
    2 => 'sub.domain.com',
    3 => 'my_public_ip_address',
  ),
  'trusted_proxies' => 
  array (
    0 => 'localhost',
    1 => 'my_local_server_ip_address ',
    2 => 'sub.domain.com',
    3 => 'my_public_ip_address',
  ),
  'forcessl' => true,
  'overwrite.cli.url' => 'https://sub.domain.com',
  'overwriteprotocol' => 'http', // tried changing this to https does nothing
  'overwritehost' => 'sub.domain.com',
  'datadirectory' => '/var/www/html/data',
  'dbtype' => 'pgsql',
  'version' => '31.0.0.18',
  'dbname' => 'nextcloud',
  'dbhost' => 'db-nextcloud',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  'dbuser' => 'REDACTED',
  'dbpassword' => 'REDACTED',
  'installed' => true,
  'instanceid' => 'ocr37kuq76t9',
  'ldapProviderFactory' => 'OCA\\User_LDAP\\LDAPProviderFactory',
);

The Basics

  • Nextcloud Server version:

    • Nextcloud Hub 10 (31.0.0)
  • Operating system and version:

    • Ubuntu Desktop 24.04.2 LTS
  • Reverse proxy and version

    • Nginx Proxy Manager v2.12.1
  • PHP version:

    • 8.3.17
  • Is this the first time you’ve seen this error?:

    • yes
  • When did this problem seem to first start?

    • 13-03-2025
  • Installation method

    • I installed Ubuntu Desktop 24.04.2 LTS.
    • Next, I installed casaos
    • In casaos there is an appstore (Docker based), from there I installed next cloud bigbeartechworld/big-bear-nextcloud-with-smbclient.
  • Are you using CloudfIare, mod_security, or similar?

    • no