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
- Send Email Verification With REST
I am using REST to create a user on the server side after receiving form data from the client. After the account is successfully created i wanted to send the v...
- Use different email hosts for different ...
Hello, I have 2 projects and i want to be able to set up email templates in the projects. Both projects will have different email host configurations. I see ...
- Migrate from cloud to localhost
Hello everyone. I need to migrate my test project from cloud to localhost, however it seems that this is possible only if a self-hosted appwrite instance it's h...