Web Developer
I am using self-hosted appwrite, running on http on a custom port (8000).
Then, I am using Caddy as reverse proxy to map my subdomain appwrite.domain.com to port 8000 and Caddy manages the TLS certificates.
HTTPS works correctly on the admin panel.
As you can see in screenshot 1, admin panel tells me to use https for my redirect uri.
However, when I try to create an oauth session, I get the error redirect_uri_mismatch (Screenshot 2)
As you can see in Screenshot 3, it tries using the URI with http instead of https.
How can I fix this?