Back

Getting Too Many Redirects on Appwrite Google OAuth

  • 0
  • Self Hosted
  • Auth
  • Web
m0hsin_
11 Jan, 2025, 03:51

I have a selfhosted instance of Appwrite deployed using Coolify. I have Appwrite forced ssl enabled. However, when I try to create an OAuth session using Google, I get a 400 with the message being too many redirects, if I disable forced ssl on Appwrite .env variables, Google tries to redirect me to the http endpoint instead of the https one. I have seen a couple of people with this similar issue but they are using cloudflare while I am not using cloudflare.

Can someone help me with this?

TL;DR
Self-hosted Appwrite instance is experiencing too many redirects error with Google OAuth due to forced SSL enabled. Disabling forced SSL leads to Google redirecting to HTTP instead of HTTPS. Issue may be related to SSL configuration. Other users reported similar issues with Cloudflare. Solution: Check SSL settings and ensure proper configuration to resolve the redirect problem.
Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more