
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 Error when Pushing a Function
Get this ambiguous error when trying to push my function, it's TypeScript using NodeJS 18 ``` ? Which functions would you like to push? get-grades (get-grades)...
- Having errors migrating to cloud
Project will not migrate compeltely
- ENV vars not updating
When i do `nano .env` it shows `_APP_DOMAIN_TARGET=` as set to my domain, but when i do `docker compose exec appwrite vars` it shows `_APP_DOMAIN_TARGET=` as ...
