Skip to content
Back

No SSL generated with wildcard custom domain for Appwrite Functions (using Cloudflare)

  • 0
  • Self Hosted
  • Functions
  • General
loup
10 Nov, 2024, 10:35

I try to setup a custom domain for using my functions without the sub object body so my only solution is using a custom endpoint. So Ive add in env _APP_DOMAIN_FUNCTIONS : appwrite-functions.mydomain.com. My DNS look like :

TypeScript
A      appwrite.mydomain.com              [IP_OF_MY_VPS]                    Proxied
A      appwrite-functions.mydomain.com    [IP_OF_MY_VPS]                    Proxied
CNAME  *.appwrite-functions.mydomain.com  appwrite-functions.mydomain.com   DNS Only

But in appwrite's logs I have this :

TypeScript
appwrite-worker-certificates  | [Job] Received Job (673087dada1957.51103021).
appwrite-worker-certificates  | Cannot renew domain (*.appwrite-functions.mydomain.com) on attempt no. 4 certificate: Failed to verify domain DNS records.
appwrite-worker-certificates  | [Job] (673087dada1957.51103021) failed to run.
appwrite-worker-certificates  | [Job] (673087dada1957.51103021) Failed to verify domain DNS records.
appwrite-worker-certificates  | Using deprecated logging configuration. Please update your configuration to use DSN format.Unable to parse DSN: scheme is required
appwrite-worker-certificates  | [Error] Type: Exception
appwrite-worker-certificates  | [Error] Message: Failed to verify domain DNS records.
appwrite-worker-certificates  | [Error] File: /usr/src/code/src/Appwrite/Platform/Workers/Certificates.php
appwrite-worker-certificates  | [Error] Line: 287
...
TL;DR
Developers having trouble generating SSL for wildcard custom domain for Appwrite Functions. The issue is likely with setting up the DNS records. Make sure to verify and configure the DNS correctly. The error message indicates failure in verifying domain DNS records. Check DNS settings and ensure they are correct.
loup
10 Nov, 2024, 10:43

Ive test with https://dnschecker.org/ Andthis example : 6730090695b98b878.appwrite-functions.domain.com and its good (point to my VPS IP)

loup
10 Nov, 2024, 10:49

Well I dont know what happens

loup
10 Nov, 2024, 10:52

If I curl :

TypeScript
curl -v http://test.appwrite-functions.domain.com

I have this message :

TypeScript
This domain is not connected to any Appwrite resource yet. Please configure custom domain or function domain to allow this request.
loup
10 Nov, 2024, 10:58

okay I can launch functions with HTTP but not with HTTPS

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