Skip to content
Back

Issue with SSL certificate for Appwrite Functions subdomains

  • 1
  • Self Hosted
  • Functions
Ericooooo
16 Apr, 2025, 20:45

I've set up Appwrite on my VPS with a custom domain appwrite.exemple.com which works correctly with SSL. However, I'm experiencing issues with function execution domains like 67ffebab79e8b2a3e0aa.functions.appwrite.exemple.com showing SSL certificate errors.

Current setup

TypeScript
_APP_DOMAIN_FUNCTIONS: functions.appwrite.exemple.com (SSL certificate exists but not valid)
_APP_DOMAIN_TARGET: appwrite.exemple.com```


# DNS Configuration in OVH
```appwrite.exemple.com.      A          IP
functions.appwrite.exemple.com. CNAME appwrite.exemple.com.
*.functions.appwrite.lysub.com.   CNAME       functions.appwrite.lysub.com.```

When accessing any deployed function, the browser shows a security error "This Connection Is Not Private" because the SSL certificate is not valid for function-specific subdomains like 67ffebab79e8b2a3e0aa.functions.appwrite.exemple.com.
The error specifically indicates that the site might be impersonating the function ID subdomain. It seems Traefik is using its default certificate instead of the proper one for these dynamically generated function subdomains.
Thanks
TL;DR
Issue with SSL certificate for Appwrite Functions subdomains. Custom domain appwrite.example.com works with SSL, but function-specific subdomains like 67ffebab79e8b2a3e0aa.functions.appwrite.example.com show SSL certificate errors. Traefik uses default certificate instead of the proper one for these subdomains. **Solution:** Update Traefik configuration to handle dynamically generated function subdomains properly.
Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more