
I ran Appwrite on my local Ubuntu Server, works fine locally. However, when accessing it through a Cloudflare tunnel, I can't log in.
I tried disabling Cloudflare's Proxy (DNS only) and adjusting the .env file to mydomain.com or subdomain.mydomain.com or localhost with the same result.
The cloudflare tunnel is connecting with cloudflared which is also running on docker.

*I'm unable to login even tho "Succesfully logged in" shows up

Did you run docker compose up -d
to apply the change to the .env file?

Yes! Still unauthorized, am I missing something 🤔, has anyone else worked with Appwrite through a cloudflare tunnel?

Try removing the volumes after stopping the containers

What version of Appwrite?

1.4.13

Yes, and I’ve never seen something like this happen

It appears to be related to the SSL/HTTPS certificate. I experimented with Tailscale Funnel (a service similar to Cloudflare Tunnels) and found that I can log in when the domain is accessed via HTTP but not when using HTTPS.

Interesting. What about when accessing it via CF over HTTP?

I typically suggest using https throughout the whole flow

I have no idea what I'm doing, but in case someone has the same issue while using cloudflare tunnels with Appwrite:

[SOLVED] 401 (Unauthorized) on Appwrite through Cloudflare Tunnel

Or for better security, you could generate a self-signed cert and tell CF to only trust that cert
Recommended threads
- PKCE, Etsy, OIDC, External OAuth provide...
first, thanks for creating and maintaining this software. I'm almost glad i couldn't convince my (wise and wonderful) senior devs to try pocketbase on productio...
- Still an issue? On user deletion, target...
This has been mentioned here: https://discord.com/channels/564160730845151244/1295830646039515146 and as a Github issue here: https://github.com/appwrite/appwri...
- Appwrite database is rounding int values
Hi, i just noticed that appwrite is rounding the value 608542412536545279 to 608542412536545300 in my int array. It seems to somewhat relate to this github iss...
