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
- Server Function Storage Limit
Getting an error saying ``` AppwriteException [Error]: The file size is either not valid or exceeds the maximum allowed size. Please check the file or the value...
- Assistance with Restoring Admin User and...
I am using a self-hosted instance of Appwrite, deployed through Coolify. Unfortunately, I mistakenly deleted the admin user, and now when I try to register a ne...
- migration from 1.5.11 to 1.6
how can I solve this my migration is failing at 100%. The collections are created but the attributes are in processing. I can not even create a document.