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
- Send Email Verification With REST
I am using REST to create a user on the server side after receiving form data from the client. After the account is successfully created i wanted to send the v...
- Use different email hosts for different ...
Hello, I have 2 projects and i want to be able to set up email templates in the projects. Both projects will have different email host configurations. I see ...
- Migrate from cloud to localhost
Hello everyone. I need to migrate my test project from cloud to localhost, however it seems that this is possible only if a self-hosted appwrite instance it's h...