Back

Can't access function endpoint

  • 0
  • Self Hosted
  • Functions
SushilGhorasaini
4 Dec, 2023, 16:15

Hello, I hosted a test function ion my appwrite server and it generated a random link. But its not accessisible from the browser. Do I need to add a CNAME for the function everytime I add a new one?? I even tried to do that but still no help. PS: I am using nginx as reverse proxy.

TL;DR
The user is unable to access a function endpoint on their appwrite server. Someone suggests adding a wildcard record for functions, but the user states that adding a CNAME record redirects to the Nginx default page. Another user asks if the appwrite login screen is appearing when trying to access the function page. The user then asks if a CNAME record needs to be added for each new function and mentions they are using Nginx as a reverse proxy. No solution is provided in the thread.
Ketan
4 Dec, 2023, 16:41

Are you getting appwrite login screen when you try to access the function page??

SushilGhorasaini
4 Dec, 2023, 23:02

no, it shows site can be reached

Ketan
5 Dec, 2023, 15:09

Then you had to add CNAME for it

SushilGhorasaini
5 Dec, 2023, 15:11

Yeah but even adding CNAME doesn’t work as it redirects to nginx default page

Ketan
5 Dec, 2023, 15:55

Can you share ss of your dns record??

SushilGhorasaini
11 Dec, 2023, 20:59
Ernest
13 Dec, 2023, 14:34

I don't see any wildcard record. You'll need to add a wildcard record for your functions. E.g. Type | Name | Content CNAME | * | appwrite.dashnetwork.com.au (should be you functions domain check your .env vars)

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