I am using a non standard port for appwrite, but I am unable to find documentation on how to use non standard ports in appwrite for custom domains.
It looks like that when you're setting custom ports for your main Appwrite domain (in Traefik) then this ports will also affect any custom domain pointing to your server.
How have you set a different ports?
I set ports 80 to 3080 cant rememeber https port
But where you set that?
in the appwrite setup
when it ask you for your ports
Good
So you can find both of them in your Appwrite docker-compose.yml file
How do I set the domain to the port
srv record?
3080 and 3084 is the ports
Okay you need to have the main domain set in your .env in these value
_APP_DOMAIN=localhost
_APP_DOMAIN_TARGET=localhost
Is this set?
do I need to set it to the whole domain like. appwrite.phelps.fit or just phelps.fit
No, the main Appwrite domain.
I'll summarize it. I've just tested it on my server and it worked great
Ok awesome
A. Make sure these values point to your main appwrite domain.
_APP_DOMAIN=appwrite.phelps.fit
_APP_DOMAIN_TARGET=appwrite.phelps.fit
If they didn't, then after updating them refresh docker by running docker compose up -d
B. Get to know both ports for http and https
C. Add custom domain in your Project setting inside Appwrite cosole.
D. Add CNAME value in your dns for the new custom domain. like so
type name content
CNAME new appwrite.phelps.fit
Then you should be able to access your new custom domain using the same port you're accessing the main one.
I am unable to do a cname with an ip cloudflare is not allowing me
CNAME is not an IP is a domain (hostname). Can you share a screenshot?
Gotcha
I can create an a record but cant verify with appwrite
The CNAME is only for the custom domain.
For your main domain appwrite.phelps.fit use A record with the server IP
Recommended threads
- Local appwrite run functions --user-id n...
Hi, I'm running into an issue when testing Appwrite functions locally with user impersonation. I'm using a self-hosted Appwrite instance and running functions ...
- Selfhosted Github App installation
I've followed this guide: https://appwrite.io/docs/advanced/self-hosting/configuration/version-control to connect GitHub to my self-hosted Appwrite instance (1....
- User ID case sensitivity
I see that through REST (and SDK as well), getting a user is not case sensitive. And even though documentation does not clearly state that it is, the wording "V...