Desktop Client is trying to use HTTP instead of HTTPS

Same problem here with nextcloud served by apache and haproxy in front of it for ssl termination.

Everything works fine except nextcloud desktop client (nextcloud mobile client has some other issues).

It still works using the old owncloud clients, though.

Update: overwriteprotocol and overwrite.cli.url seems to have solved the issue. Thanks.

If you are using the nextcloud docker image you can set the env
OVERWRITEPROTOCOL=https
for the app container

2 Likes

Finally, this solved my issue! Thank you so much!
My wife and me were stuck with Client version Nextcloud-3.2.4 and now it is working again.

But i am still concerned that this can not be the most healthy way to do this. Some day this might backfire when every switch i had to flip to make things work start to collide with each other.

Tried everything suggested here…I’m not behind a proxy.

My instance continues to generates http URL.
I created a new subject here Using http even with overwriteprotocol configured...can't obtain grant on apps to avoid mixing with proxys issues.

Help ?

Had the same problem like here described, tried every configuration and nothing helped… except a restart of the docker container with the following configuration

  'overwrite.cli.url' => 'https://nextcloud.server.com/nextcloud',
  'overwriteprotocol' => 'https',
1 Like

I have this issue and none of the solutions worked for me. It is very frustrating and I’m not sure where to go next

So, since I posted this I have now managed to resolve the issue. There were two things I had to do above having the overwriteprotocol and overwrite.cli.url set. I had to remove overwritecondaddr which wasn’t enough on it’s own but a necessary step. My regular setup has a redirect from http to https to enforce the use of https, I had to remove this for the duration of the client installs. Once I was logged in and working then I could re-enable this step. I’m aware that I may have to disable this every time I have to install a new client but at least I’m up and running for now

Fixed it for the helm chart in this PR: Sets OVERWRITEPROTOCOL env var in deployement.yaml for http to https redirect to work by stevek-pro · Pull Request #210 · nextcloud/helm · GitHub

Very helpful thanks

1 Like

Legend. Fixed it for me

Thanks, no overwrite url & protocol helped me, too!