Back

Deploy frontend on the same domain with appwrite console

  • 1
  • Self Hosted
  • General
  • Web
Shawn
4 Sep, 2023, 09:25

I don't want my frontend to live in another domain different from the main domain. Normally I would set up nginx as reverse proxy to route to different subpath, say, /v1 for appwrite, the rest will be routed to the frontend. But how can I achieve this simple goal in appwrite? And how can I set the custom domain then?

TL;DR
The user wants to deploy the frontend and appwrite console on the same domain. The recommended way is to have the frontend on `myapp.com` and the backend on `appwrite.myapp.com`. However, if you want both on the same domain, you can use a reverse proxy. The user is asking for help on how to achieve this with appwrite.
Shawn
4 Sep, 2023, 10:05

Any help on this?

Shawn
4 Sep, 2023, 10:26

Anyone can help?

Meldiron
4 Sep, 2023, 10:50

Hey 👋 In Appwrite recommended way is to have forntend on myapp.com and backend on appwrite.myapp.com using custom domain.

If you need both on the same domain, as you mentioned, you would need to use some kind of reverse proxy.

Drake
4 Sep, 2023, 18:11

also, appwrite should run on it's own specific domain since you can have multiple projects with different frontends

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