MacOS client : Issue to connect. Wrong port redirection?

Hello,

I just installed nextcloud on my whatbox slot. It works fine. I can connect from my ios app and from the webui with no issues.

But when it comes to the desktop app
 I put my adress “https://nextcloud.[
].box.ca/nextcloud” It goes on the site so i can validate the connection and then i accept. The app add the account and shows directly "the connection with 
 is closed ".

I have a reverse proxy on whatbox. The nextcloud server is on 18356 port.

here is my config.php

  'trusted_domains' => 
  array (
    0 => 'nextcloud.[...].box.ca',
  ),
  'datadirectory' => '/mnt/mpathn/[...]/files/nextcloud/data',
  'dbtype' => 'sqlite3',
  'version' => '32.0.6.1',
  'overwrite.cli.url' => 'https://nextcloud.[...].box.ca/nextcloud',
  'overwriteprotocol' => 'https',
  'overwritehost' => 'nextcloud.[...].box.ca:443',
  'overwritewebroot' => '/nextcloud',
  'installed' => true,
  'config_preset' => 1,
  'app_install_overwrite' => 
  array (
  ),
);

When i click on the adress, the app redirects to :

https://nextcloud.[
].box.ca:18356/nextcloud/

That’s why I added ‘overwritehost’ => ‘nextcloud.[
].box.ca:443’,

Has anyone an idea of how i can solve this issue ?

Thanks for your help ! :four_leaf_clover:

Hello @MikeKay,

welcome to the Nextcloud community! :handshake:

you setup looks good on the first glance. please dig deeper and review/share the logs from the client, reverse proxy, webserver and application to see where the redirect comes from. in the logs look at *forwarded_for* headers - these should tell the application how you access the system, you are missing trusted_proxies record so likely the application ignores

Please look at 101: reverse proxy and topics tagged reverseproxy similar discussions exist.