Back

Deploying functions on self-hosted Appwrite.

  • 0
  • Self Hosted
  • Functions
HTZL
8 Nov, 2024, 00:36

Hey guys, I could use a bit of help. Long text but i try to make it clear.

I was on Appwrite Cloud until yesterday. I switched to self hosting on my RPI-4B. port forwarded and use dyndns. I am also using a subdomain, say db.example.com of my own domain example.com, and cnaming it to the dyndns domain. db.example.com is the one is use for _APP_DOMAIN and _APP_DOMAIN_TARGET in .env. Everything working fine till now. Now i tried to add functions. I tried it with _APP_DOMAIN_FUNCTIONS=localhost, then i can execute only on host machine, makes sense. but if i for example make it _APP_DOMAIN_FUNCTIONS=functions.example.com, i dont know what to do next. what cnames should i define at my domain provider? Any tips? And then there is nginx. I read a lot about guys using nginx in relation to this problem. what exactly does nginx and can it help me here?

Please help!

TL;DR
Developers successfully switched from Appwrite Cloud to self-hosted on Raspberry Pi 4B. They are using a subdomain and CNAME for dynamic subdomains/functions. They want certificates for dynamic subdomains and need guidance on setting up CNAMEs and utilizing nginx for assistance. **Solution:** Use wildcard SSL certificates for dynamic subdomains. Configure CNAME records for dynamic subdomains. Utilize nginx for managing routing and reverse proxy configuration.
HTZL
8 Nov, 2024, 00:55

Okay guys, got it working. Now is the only last question, how do i automatically get certificates for all the dynamic subdomains / 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