Back

[CLOSED] What should I set env variable if I want to use self hosted appwrite with ngrok

  • 0
  • Self Hosted
Ketan
9 Nov, 2023, 18:19
TypeScript
_APP_DOMAIN=localhost
_APP_DOMAIN_FUNCTIONS=functions.localhost
_APP_DOMAIN_TARGET=localhost
TL;DR
The user wanted to know how to set the environment variable for using a self-hosted Appwrite with ngrok. The user was using One Click Setup for Appwrite on Gitpod but had trouble setting up the subdomain correctly. The error they were encountering was related to the domain not pointing to Appwrite. The solution provided was to set the `_APP_DOMAIN` and `_APP_DOMAIN_TARGET` variables to the ngrok domain. The suggested values were `_APP_DOMAIN=localhost` and `_APP_DOMAIN_FUNCTIONS=functions.localhost`.
Drake
10 Nov, 2023, 19:14

Set _APP_DOMAIN and _APP_DOMAIN_TARGET to your ngrok domain.

As for the functions domain...You need to set it to the base domain such that all subdomains point to _APP_DOMAIN_TARGET...can you do that with ngrok?

Ketan
11 Nov, 2023, 05:01

Is the following deployment successful

Drake
11 Nov, 2023, 05:02

That's just a domain. Not a deployment

Ketan
11 Nov, 2023, 05:16

I am getting following error when I try to access the url, do you have soln for this?

Ketan
11 Nov, 2023, 05:17
Drake
11 Nov, 2023, 05:17

That's a domain/ngrok problem

Drake
11 Nov, 2023, 05:18

The domain needs to point to Appwrite. And it's up to you to handle ssl

Ketan
11 Nov, 2023, 05:19

When I click execute now, it worked so I think It has been deployed successfully, just I can't call it via URL

Drake
11 Nov, 2023, 05:24

That's your problem with your domain

Ketan
11 Nov, 2023, 06:06

Yup you were correct, subdomain does not point to my instance

Ketan
11 Nov, 2023, 06:06

Is there any way we can call it via root domain?

Drake
11 Nov, 2023, 06:16
Ketan
11 Nov, 2023, 18:48

I used One Click Setup for Appwrite on Gitpod, there also it the subdomain one did not work after setting up the Github??

Ketan
16 Nov, 2023, 08:14

This issue can be closed now

Drake
16 Nov, 2023, 20:53

[CLOSED] What should I set env variable if I want to use self hosted appwrite with ngrok

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