Nextcloud Linux Client 'Polling url does not start with https despite the login url starting with https'

Realized I was running the Nextcloud client app image so I switched over the the flatpak and made sure I was running https to my local only domain name. This suddenly caused a 'polling' issue.

I wanted to share the solution I found here.

SSH into your server and go to Nextcloud/config the nano into config.php. Then under the trusted domain section make sure it reads as below for your IP or domain:

  'trusted_domains' => 
  array (
    0 => 'domain.ltd',
  ),

  'overwrite.cli.url' => 'https://domain.ltd',
  'overwriteprotocol' => 'https',

Solved! Thanks Catav.