Back

[SOLVED] How to fix API Endpoint

  • 0
  • Web
ZachHandley
20 May, 2023, 23:24

I installed it before I set my domain, and it installed itself at my server IP and won't allow login through appwrite.mydomain.com - despite what the error says I did set up the domain in my web console

TL;DR
Title: [SOLVED] API Endpoint not working with custom domain Messages: - User installed API Endpoint before setting domain, resulting in it being installed at server IP instead of `appwrite.mydomain.com`. - User tried adding a custom domain, but verification failed repeatedly. - User ensured that `DOMAIN` and `DOMAIN_TARGET` env vars were set correctly. - User also restarted the system after fixing the vars. Solution: The user needs to ensure that they have correctly set up the domain in their web console AND the DNS configuration. Additionally, they should try restarting the API Endpoint service using the proper
ZachHandley
20 May, 2023, 23:29

Tried adding a custom domain, but verifications fails every time

Drake
20 May, 2023, 23:41

there are the DOMAIN and DOMAIN_TARGET env vars

ZachHandley
20 May, 2023, 23:42

They are both set correctly

TypeScript
_APP_DOMAIN=appwrite.obrianspub.com
_APP_DOMAIN_TARGET=appwrite.obrianspub.com
ZachHandley
20 May, 2023, 23:42

I restarted it as well after fixing these vars

Drake
20 May, 2023, 23:44

How did you restart?

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