The polling url does not start with https despite the login url started with https

Hi,

[/details]

Nextcloud version (eg, 20.0.5): 23.0.3.2
Operating system and version (eg, Ubuntu 20.04): Ubuntu 20.04 + k3s 1.22.7
Apache or nginx version (eg, Apache 2.4.25): Apache/2.4.53
PHP version (eg, 7.4): 8.0.17

The issue you are facing: I’ve installed Nextcloud on my baremetal k3s server. I can connect and use it via web browser. DAVx5 connect to card/cal repos.
Desktop or mobile apps can’t connect it. Nextcloud appimage says:
“The polling url does not start with https despite the login url started with https. Login will not be possible because this might be a security issue.”

Is this the first time you’ve seen this error? (Y/N): Y

Steps to replicate it:

  1. https://domain.ltd

The output of your config.php file in /path/to/nextcloud (make sure you remove any identifiable information!):

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

  'overwrite.cli.url' => 'http://localhost',

How can I solve this problem? Thanks in advance.

1 Like

Hi,
I found a solution after digging a lot on internet.
Following changes solve the problem.

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

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

NC works as expected now on k3s cluster.

1 Like