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
- Function domain not available
Hello, even tho in docs you clearly describe that every function has its domain, I can not see it anywhere in any of my projects. How do I reveal the url of th...
- Inquiry: How to Reduce Cold Start Durati...
Hey! I was using Python for the function runtime, but after reading that Go has the fastest runtime, I switched my code over to Go. However, I'm still seeing co...
- After a GET request is passed to functio...
Create execution in the console can normally retrieve the get parameters。WHy?