
This error from my browser

And what value did you put in _APP_DOMAIN & _APP_DOMAIN_TARGET?

Is Cloudflare SSL settings sets to full?

_APP_DOMAIN_TARGET=appwrite.kantorhosting.com```
This my value of env

I no have sure

Go to SSL/TLS -> Overvire. Change to Full and try again


So change to Full

Okay, I was change to Full
, and I try again in incognito mode. But problem still persist

Now it's seems to work

Test again

Nah bro, still persist

The reason for that is that if your Appwrite is behind Cloudflare then either you need to disable the SSL on your Appwrite or change to Full as we did

Try close and open the browser

Completely

With ⌘+Q

Owh, okay

It's Magic

I must understand this statement first

Thank's @Binyamin

When Cloudflare tries to connect to your Appwrite server, and your setting sets to Flexible
then it wont expect any SSL certificate.
In that case Cloudflare will go to port 80 in your destination server, but there server sets to server HTTPS version and it redirect to 443 and Cloudflare to port 80 and so one for ever
That what cause too many redirects
because there is no case when it can stop.
When we have change it to Full
then both sides would serve it in SSL mode (port 443) and everything will work

Your statement loud clear, thank's I will change the title to solve

<:appwriteupvote:899677724615016528>

[SOLVE] Too many redirect on custom domain self hosted Appwrite.

[SOLVED] Too many redirect on custom domain self hosted Appwrite.
Recommended threads
- I am facing this error: type 'Null' is ...
When attempting to fetch areas from the area collection, the application throws an error: "type 'Null' is not a subtype of type 'int.'" This issue originates in...
- Adding Domain to Sites [Self Hosted]
I am struggling to get this working. I stood-up a new server and deployed appwrite 1.7.4. I added update .env file _APP_DOMAIN=appwrite.mydomain.com _APP_DOMAI...
- Adding custom domain to Appwrite project
My app is hosted on Vercel on domain todo.velleb.com. On PC, the OAuth logins like GitHub, Discord and Google work and create the account and log in. On mobile ...
