Back

Function URL not accessible

  • 1
  • Self Hosted
  • Functions
kamal.panara
10 Jan, 2024, 13:37

none of my function's URL are accessible, how can i make it publically accessible? I have followed this blog post by Steven: https://medium.com/@stnguyen90/how-to-run-appwrite-behind-nginx-19348ed34243 to setup reverse proxy on my Appwrite VPS .

TL;DR
The user is experiencing difficulties accessing function URLs on their self-hosted Appwrite instance. They are unsure if a reverse proxy is necessary and whether it is interfering with the setup. They also mention following a blog post for setting up a reverse proxy. A solution is not provided in the thread.
Aditya Oberai
10 Jan, 2024, 13:40

@kamal.panara aside from conventionally deploying the function template, what other steps have you taken?

Ideally, your function URL should work out-of-the-box, so I'd love to know some more info about your setup

kamal.panara
10 Jan, 2024, 13:45

Function URL not accessible

kamal.panara
10 Jan, 2024, 13:46

Hi I just updated the question

Aditya Oberai
10 Jan, 2024, 13:49

Do you need nginx as a part of your setup? Is there any mandatory requirement for the same?

I ask just so we can verify if this may be interfering anywhere, since this tutorial was created much before our current generation of Appwrite Functions

Also, are you not able to consume your function URL or unable to find it?

kamal.panara
10 Jan, 2024, 13:52

I'm not able to consume function URL

kamal.panara
10 Jan, 2024, 13:53

I'm using NPM for reverse proxy, does appwrite supports reverse proxy by default?

Aditya Oberai
10 Jan, 2024, 13:54

To have function URLs on a selfhosted Appwrite instance, there are some configuration steps

https://appwrite.io/docs/advanced/self-hosting/functions#github-variables (check _APP_DOMAIN_FUNCTIONS)

https://appwrite.io/docs/products/functions/deployment#domains

Aditya Oberai
10 Jan, 2024, 13:55

As such, because we have function domains, you do not really need a reverse proxy to communicate with functions anymore

kamal.panara
10 Jan, 2024, 13:55

okay so let me remove the nginx

kamal.panara
10 Jan, 2024, 13:56

my .env

Aditya Oberai
10 Jan, 2024, 13:58

Can you try setting _APP_DOMAIN_FUNCTIONS to a different subdomain

kamal.panara
10 Jan, 2024, 13:58

okay

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