[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
- Apple OAuth Scopes
Hi Hi, I've configured sign in with apple and this is the response i'm getting from apple once i've signed in. I cant find anywhere I set scopes. I remember se...
- Sign In With Apple OAuth Help
Hi All! I've got a flutter & appwrite app which Im trying to use sign in with apple for. I already have sign in with google working and the function is the sam...
- [SOLVED] OAuth With Google & Flutter
Hi all, I'm trying to sign in with google and it all goes swimmingly until the call back. I get a new user created on the appwrite dashboard however the flutte...