Back

[CLOSED] How to configure custom domains for functions

  • 1
  • Self Hosted
  • Functions
wonderfulcheese
11 Nov, 2023, 12:53

Hi I have a self-hosted instance. In my env, _APP_DOMAIN and _APP_DOMAIN_TARGET are set to appwrite.example.com. I have added a DNS record pointing appwrite.example.com to the IP of the instance. I am able to access the instance. _APP_DOMAIN_FUNCTIONS is set to functions.example.com. I have added a DNS record which points functions.example.com to the IP of the instance. Whenever a function is created, Appwrite automatically generates a domain function_id.functions.example.com. When I try to execute the function through the generated domain, I get the Error: getaddrinfo ENOTFOUND error.

TL;DR
The user is asking for help with configuring custom domains for functions in a self-hosted instance of Appwrite. They have set the necessary environment variables and added the appropriate DNS records. However, they are encountering an "Error: getaddrinfo ENOTFOUND" when trying to execute a function through the generated domain. Solution: The user needs to configure a wildcard DNS record to point *.functions.example.com to Appwrite.
Drake
13 Nov, 2023, 21:21

_APP_DOMAIN_FUNCTIONS is set to functions.example.com. I have added a DNS record which points functions.example.com to the IP of the instance.

You need to configure a wildcard DNS record to point *.functions.example.com to Appwrite

Drake
13 Nov, 2023, 21:21

FYI, you'll need to manage certificates yourself...we haven't documented how to do that yet

wonderfulcheese
15 Nov, 2023, 16:35

Got it! Thanks

wonderfulcheese
15 Nov, 2023, 16:36

[CLOSED] How to configure custom domains for functions

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