Malformed server configuration error when using NC Android App

Nextcloud version (eg, 20.0.5): 20.0.6
Operating system and version (eg, Ubuntu 20.04): docker

The issue you are facing:
I have Nextcloud running via docker on a Qnap NAS. I have Traefik setup for reverse proxy. I am able to access Nextcloud via local ip 192.168.1.3:8086 and via my domain nextcloud.mydomain.com So everything seem to be working fine with my nextcloud setup and Traefik.

When i tried to connect with the android app it is work fine when using the local ip address but when using the domain address it said “malformed server configuration”.

I have searched the forum for the “malformed server configuration” but did not find any relevant post. Please help. Thank you.

config.php file

<?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,
    ),
  ),
  'instanceid' => 'oczzzzzzzzbua',
  'passwordsalt' => 'RyxfzzzzzzzzzzzzzzzzofQZ+',
  'secret' => '7i9uUqzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz2uK+nmwx',
  'trusted_domains' =>
  array (
    0 => '192.168.1.3:8086',
    1 => 'nextcloud.mydomain.com',
  ),
  'datadirectory' => '/var/www/html/data',
  'dbtype' => 'mysql',
  'version' => '20.0.6.1',
  'overwrite.cli.url' => 'http://192.168.1.3:8086',
  'dbname' => 'nextcloud',
  'dbhost' => 'db',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  'mysql.utf8mb4' => true,
  'dbuser' => 'nextcloud',
  'dbpassword' => 'zzzzzzzzzzz',
  'installed' => true,
  'loglevel' => 2,
  'maintenance' => false,
  'updater.secret' => 'zzzzzzzzzzzzzzzzzzzzzzzzzzzztiBFUoqvktqbYqbE4wwXdN5x17JOmy',
);
1 Like