Rank 3: Container
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.
Votes
0
Replies
24
Participants
Unknown
Messages
25
Rank 3: Container
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?
Rank 3: Container
I set ports 80 to 3080 cant rememeber https port
But where you set that?
Rank 3: Container
in the appwrite setup
Rank 3: Container
when it ask you for your ports
Good
So you can find both of them in your Appwrite docker-compose.yml file
Rank 3: Container
How do I set the domain to the port
Rank 3: Container
srv record?
Rank 3: Container
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=localhostIs this set?
Rank 3: Container
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
Rank 3: Container
Ok awesome
A. Make sure these values point to your main appwrite domain.
_APP_DOMAIN=appwrite.phelps.fit_APP_DOMAIN_TARGET=appwrite.phelps.fitIf 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.fitThen you should be able to access your new custom domain using the same port you're accessing the main one.
Rank 3: Container
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?
Rank 3: Container
Gotcha
Rank 3: Container
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