[SOLVED] Custom domain is not verified, but works in local environment, and not in production
- 0
- Self Hosted
- Flutter

I was not able to verify my custom domain using cname, but I have appwrite.{my-custom-domain}.com as an A record in my cloudflare dns settings and can access it with no issues (connection is still http as well). Also I can access everything in local environment using the custom domain, but doesnt work when I build app on production.

First off...how many hostnames do you need for Appwrite instance?

I am just using one: appwrite.cliqu3.com

And it works just fine locally using that domain, but when building production and using my app at app.cliqu3.com: I cannot use any appwrite functionality

I see. So, you shouldn't be adding a custom domain in your appwrite project. Those are for additional domains for your project. Your domain should be configured using the DOMAIN env vars in the .env file.

For this problem...did you add a web platform for your project with a matching hostname of your app?

I have my app domains listed as environment vars. And yes I am using my cliqu3.com hostname

I can access the appwrite.cliqu3.com and can use all db functions while using my localhost app, but not when I push build online

I thought you use the custom domains to add certificates as well, or how would I do that?

appwrite.cliqu3.com is only accessible on local network. Im not sure how to forward my appwrite ip to internet. Do I need more dns records?

would you please share a screenshot of the web platform configured in your appwrite console?

yes...but that's additional Appwrite endpoints

if your appwrite instance isn't publicly accessible, Appwrite won't be able to generate a certificate for you. see https://appwrite.io/docs/certificates
it's not exactly a DNS thing..it's more network forwarding. Is your machine that has Appwrite running at home behind a router?


This is what you were looking for?

And yes, my machine is running at home behind a router

My website and app are too, but they work fine with cloudflare certs

This is interesting...I expected to see a middle section for updating the platform π§.
How come your hostname seems backwards?

I think thats how flutter does applications? I might be doing something wrong

So because it's behind a router, by default, when a network request comes in, there's nothing to say to route the request to the machine that needs to serve the request. You would need to either enable port forwarding or create a tunnel. I hear cloudflare tunnel works well.
Also, do you have anything else in front of Appwrite?

Do you have a web app?

Yes

And what do you mean in front of appwrite?

I have port forwarding enabled on my router

Then you need to put the actual hostname used for navigating to your web app
Recommended threads
- Origin error after changing default port...
Hi! I need some help regarding an issue Iβm facing with Appwrite after changing the default ports. I have a self-hosted Appwrite instance running on my VPS. I ...
- Opened my website after long time and Ba...
I built a website around a year back and and used appwrite for making the backend. At that time the website was working fine but now when i open it the images a...
- CSV Import not working
I am running 1.7.4, trying the sample book csv import. I get a pop up saying import started and then a quick follow up saying completed. Nothing ever appears ...
