Skip to content
Back

Login redirect going to http not https

  • 0
  • Self Hosted
  • Auth
azmo
4 Jun, 2025, 16:56

Hi yall, I'm having an issue where the redirect URL is going to http, instead of https. I think this is a bug.

TypeScript

^ notice the HTTP there

I've got caddy in front of traefik, going to its http port. I have _APP_OPTIONS_FORCE_HTTPS=true, it doesn't make a difference. The callback URL in the auth config shows https. So 443 from Caddy to the HTTP web port.

I reverted traefik back to 80/443 and direct to the https port directly, and now it shows the correct callback URL. I supposed I can have Caddy go to the traefik ssl port for now, but I'd rather have it as http internally

TL;DR
Developers are experiencing an issue with the redirect URL going to HTTP instead of HTTPS, despite having force HTTPS options enabled. Reverting Traefik back to 80/443 and directing to the HTTPS port directly resolved the problem for now.
azmo
4 Jun, 2025, 16:57

I see a few more force https options, let me try those

azmo
4 Jun, 2025, 16:59
TypeScript
_APP_OPTIONS_ROUTER_FORCE_HTTPS=enabled```
azmo
4 Jun, 2025, 16:59

also no difference

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