Nexcloud Android App, Cloudflare = Malformed Server Configuration, HELP Please!

Hello all ,
I’m having an issue with my Nextcloud Andriod app and cloudflare.

Whenever I try and sign into Nextcloud on the app I get a Malformed server configuration, but I can log into the Nextcloud web browser just fine. I’m sure it has something to do with Cloudflare settings. Here is what I have setup and again, works when logging in via chrome.


I have also tried the Nextcloud Dev app and same results.

All help would be greatly appreciated!

I think I have tried everything to get the Nextcloud app working
I have followed this without success
all-in-one/reverse-proxy.md at main · nextcloud/all-in-one (github.com)

Another question I have is, I have Google 2fa login for Cloudflare. Would this cause a Malformed server configuration error with the Nextcloud app when trying to enter the domain and login?

Did you ever solve this? I have the same issue.

I don’t know the specific error you’d see, but if what you’re saying is that there’s some sort of intermediate non-Nextcloud authentication mechanism required before the Android client can actually talk to the Nextcloud Server… then, yes, that would break the Android client.

To follow up on this, I have removed authentication from my preferred identity provider in my Cloudflare. However, I still get “Malformed Server Configuration” error message when I attempt to connect from NextCloud Android app.

Any assistance on this would be greatly appreciated. Thanks!

@H31s3nb3rg May I know did you manage to resolve this issue? I am also having this problem.

I have setup my NextCloud-aio docker instance with Cloudflare tunnel running on the same host.

After the setup, I am able to access Nextcloud via my chrome browser but I am unable to access by NextCloud via the NextCloud android app.

Have you tried removing the Google 2FA from Cloudflare Tunnel? Did it resolve the issue?