
Hi everyone, I’m currently facing an issue with function URLs in my Appwrite setup, and I would appreciate some guidance.
Setup Details: Appwrite Version: 1.6
Hosting Platform: Coolify
DNS Management: Using Cloudflare
I’ve set up wildcard DNS records (*.functions.example.com and functions.example.com) pointing to my Appwrite server as CNAME records. Proxy status is set to Proxied (orange cloud). SSL/TLS is set to Full (Strict), and all required Cloudflare configurations have been applied, including purging cache after updates. Environment Variables:
_APP_DOMAIN: appwrite.example.com _APP_DOMAIN_FUNCTIONS: functions.example.com _APP_DOMAIN_TARGET: appwrite.example.com
Issue:
When deploying functions, the generated URLs are still in the format:
http://<function-id>.functions.example.com
Instead of the expected HTTPS.
Additionally, when testing SSL via tools like SSL Labs, the certificate presented for functions.example.com is Traefik's default self-signed certificate instead of one issued by Cloudflare. This results in SSL errors such as NET::ERR_CERT_AUTHORITY_INVALID.
What I’ve Tried: Verified that _APP_DOMAIN_FUNCTIONS is set to functions.example.com in the environment variables. Restarted Appwrite services after applying changes.
Verified DNS resolution: Subdomains like <function-id>.functions.example.com resolve correctly to the Appwrite server.
Configured Cloudflare: Enabled SSL/TLS with Full (Strict) mode. Proxied DNS records for functions.example.com and *.functions.example.com. Purged Cloudflare cache.
Checked Traefik configuration: Observed that Traefik is presenting its self-signed certificate for the domain.
Request for Help: Is there additional configuration required in Appwrite or Traefik to ensure HTTPS is used for function URLs? Should Appwrite or Traefik be configured differently to work seamlessly with Cloudflare? Any insights or guidance would be greatly appreciated. Thank you in advance!
Recommended threads
- Properly contained appwrite main app can...
Hello! We tried to reinstall our main self-hosted appwrite with a new method but the main app 2 mins after launch throw this error: ```2025/06/22 16:16:14 s...
- Broken message
https://github.com/appwrite/appwrite/issues/10081 I just realized that I can just build appwrite myself, was this bug fixed in latest dev release?
- 404 errors after 7 Days
Local hosted Appwrite via docker. Last version and current version. After exactly 7 days Appwrite stops working. I get 404 route not found, cannot access anyth...
