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.

3 Likes

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.

8 Likes

Hello i have the same problem, just that i do not have yet the technical knowledge to fix it

I’ve come back here for this solution multiple times, haha. THANK YOU!

Well, that solved a real headache for me, thanks a LOOOTTTTT

worked like a charm. Thanks!

This worked a treat thanks for your help!.
I can now access the nextcloud on desktop and Android mobile app but do you have any idea on how I can the nextcloud from my local IP address aswell? I can’t seem to access nextcloud on my home nework with nextclouds local IP and port number when accessing ip:port in a browser it gets redirected to https which throws an ERR_SSL_PROTOCOL_ERROR.