try creating wild-card sub-domain in your DNS settings for functions
[SOLVED]"Error: Couldn't resolve host name" on function domain
Votes
0
Replies
24
Participants
Unknown
Messages
25
Rank 2: Process
how do i do that?
like this *.appwrite.xyz.com and point it to your Appwrite VPS's IP Address, just like you did with appwrite.xyz.com.
Rank 2: Process
A record?
yes
Rank 2: Process
like this right?
yes
what is your domain name for appwrite ?
Rank 2: Process
why?
*.<whatever-is-your-domain-name>
Rank 2: Process
yes, thats the value i put for the a record
okay perfect
Rank 2: Process
but with an appwrite in between like here
Rank 2: Process
so now i got an A record with *.appwrite and one with appwrite
okay, what TTL did you set
Rank 2: Process
300
Rank 2: Process
the function url now works
Rank 2: Process
thanks
perfect!
Rank 2: Process
but the ssl certificate has a exclamation mark
Rank 2: Process
the ssl cert for the base domain is fine though
wait for some time, appwrite will assign it automatically, if it's doesn't then you can manually assign it yourself using appwrite by running this command in your appwrite VPS
via SSH : docker compose exec appwrite ssl domain="<your-function-domain>"
learn more about it here: https://appwrite.io/docs/advanced/self-hosting/tls-certificates#manual-generation
If your issue has been solved, you can mark this post as closed by adding "[SOLVED]" to the beginning of the title.
Rank 2: Process
[SOLVED]"Error: Couldn't resolve host name" on function domain