I am unsure about my current setup of my appwrite backend.
So I have a domain example.com and I would like appwrite to be accessible under baas.example.com. Currently my nginx proxy manager forwards request to baas.example.com to my appwrite traefik appwrite-traefik:80 instance. Which works fine.
My appwrite functions are accessible using baas.example.com/functions/....
My .env file contains the following entries:
_APP_DOMAIN=baas.example.com
_APP_DOMAIN_FUNCTIONS=function.example.com
_APP_DOMAIN_TARGET=baas.example.com
Is this the correct setup? And what exactly is the difference between _APP_DOMAIN and _APP_DOMAIN_TARGET_?
And how do I setup my functions endpoint (domain)? My desired endpoint is function.example.com?
How do I add subdomain as backend subdomain and function subdomain?
Seems fine.
You need another entry in NPM to forward function.example.com to Appwrite
But should _APP_DOMAIN and _APP_DOMAIN_TARGET be the same? What is the difference?
When using the function.example.com domain to access the functions, do I still use the pattern functions.example.com/functions/... or does it have a different pattern?
App domain and app domain target are usually the same. The target is used for adding a custom domain for a project. It validates the custom domain is pointed to the right thing.
The function domain allows you to hit your function directly and not follow the usual requirements of hitting Appwrite's APIs
Recommended threads
- The file size is either not valid or exc...
Hello, I am receiving the following error when I am trying to deploy a function from my local. ``` > appwrite push functions --function-id xxxxxxxxx ℹ Info: Va...
- redirect_uri errors on flutter client
Hi all, I'm using the flutter client for my app to do appwrite auth and use the JWTs to send to my backend. When I try to sign in with SSO, I get this: https:/...
- How does sending email from the Appwrite...
I noticed that the pricing page mentions “Messages – 1000 per month” for the Free plan. Is this different from sending emails? When I try to send an email usin...