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
- Appwrite Python SDK Keeps returning the ...
So I have a couple services, one is a scheduling engine responsible for fetching data from a database and launching a containerized micro service to process tha...
- Invalid token passed in the request
Hello, I have an issue using updateMagicURLSession. I send the email using sendMagicLink, which works fine. When i click the link in the email i get the invali...
- functions domain error
I cannot set up the domain for function I’m trying to add the domain api.example.com I can only use Cloudflare as the DNS provider because my domain provider do...