I’m running self-hosted Appwrite (Docker) behind Traefik with Cloudflare proxy (Full/Strict).
Main domain works: https://app.printa4.in
Function subdomains fail TLS completely, e.g. https://<functionId>.functions.printa4.in
openssl result:
SSL alert number 40: handshake failure no peer certificate available
This means the origin doesn’t present any cert for function subdomains.
Setup:
Cloudflare terminates TLS
Traefik + Appwrite are HTTP-only
Env vars:
_APP_DOMAIN=app.printa4.in _APP_DOMAIN_FUNCTIONS=functions.printa4.in
Suspected cause: Function subdomains (*.functions.<domain>) don’t inherit routing automatically and require an explicit wildcard HostRegexp router in the reverse proxy.
Question: What is the official / recommended reverse-proxy configuration for Appwrite function subdomains when using Cloudflare + Traefik? Should TLS be handled at the proxy or by Appwrite itself for functions?
Any guidance or docs would be really helpful 🙏
Recommended threads
- function subdomain ssl certs
The generated subdomain isn't getting a valid ssl cert, I was wondering if appwrite automatically generates one or uses a wildcard for *.functions.domain.com? ...
- Whats best practise for Appwrite Cloud?
Appwrite Teams map very nicely to my needs, it is how i group users together. ... I use roles to define permissions. Should I also map a table to each team ? ...
- Error getting preview of file
Rest Response: ``` { "message": "Server Error", "code": 500, "type": "general_unknown", "version": "1.8.1" } ``` Appwrite Logs ``` appwrite ...