Back

custom domain SSL

  • 0
  • Self Hosted
D5
2 Sep, 2023, 21:43

Also, are you using standard port for HTTPS?

TL;DR
User is having issues setting up SSL for a custom domain on their app. They mention trying different things and getting errors. They also mention that the custom domain entry gets verified, but certificate creation fails and the project endpoint still points to the main domain. They inquire about using the CLI, but mention that it is broken too. They mention that both the domain and SSL are being handled by a proxy. They also mention that the domains are proxied to port 80 and 443 on the Appwrite machine running Docker. They ask about using NGINX to proxy two domains to Appwrite. They also mention that they are using SSL for
D5
2 Sep, 2023, 21:44

With permission, I'm entering there

Darthbert
2 Sep, 2023, 21:44

yes, nginx (80-443) -> appwrite 1.4.1 (80, 443)

D5
2 Sep, 2023, 21:45

First domain appwrite.bonfisoft.com Seems using SSL correctly 👀

Darthbert
2 Sep, 2023, 21:45

nginx is actually a dockerized nginx proxy manager BTW

D5
2 Sep, 2023, 21:45

Both domains are using SSL in my side 🧐

D5
2 Sep, 2023, 21:46

Specifically TLS 1.2

Darthbert
2 Sep, 2023, 21:46

NPM requests the certs when the redirect is set up. The issue i think is appwrite trying to request another

D5
2 Sep, 2023, 21:47

What do you mean?

D5
2 Sep, 2023, 21:47

Also, are you using NGINX to proxy 2 domains to Appwrite?

Darthbert
2 Sep, 2023, 21:49

I have a router exposed to the internet, the router send all 80 and 443 requests to a machine running NPM. NPM proxies the domains to Appwrite.

Darthbert
2 Sep, 2023, 21:50

the domains are proxeied to port 80, 443 on the apprwite machine running docker

Darthbert
2 Sep, 2023, 21:52

so i think the main domain works because it gets the provisioned ssl from npm. the other domain works externally because of the same reason. But when from inside you set up the custom domain in a project, the cert worker somehow cannot get the verification

Drake
2 Sep, 2023, 21:54

Ya you might be fine. No need to appwrite to set up an SSL certificate if NPM already has one

Darthbert
2 Sep, 2023, 21:55

so just disregard cert status? but then it doesn't let me change the custom domain endpoint.

D5
2 Sep, 2023, 21:56

Because the domain is set by the proxy

D5
2 Sep, 2023, 21:56

Basically both domain and SSL are being handled by the proxy

Drake
2 Sep, 2023, 21:56

Can you recreate?

Darthbert
2 Sep, 2023, 21:57

you mean the custom domain entry? Yes tried. custom domain entry gets verified, cert creation by apprite fails, project endpoint still points to main domain

Darthbert
2 Sep, 2023, 21:58

was going to try to update the endpoint with the cli, but the cli is broken too!

Drake
2 Sep, 2023, 21:58

That won't change. Just disregard.it

Darthbert
2 Sep, 2023, 21:59

ok. so i can just keep the main endpoint and won't mess up cors?

Drake
2 Sep, 2023, 22:00

Ya and you should be able to use your custom domain in your app too

Darthbert
2 Sep, 2023, 22:01

Awesome thanks!

Darthbert
2 Sep, 2023, 22:01

I'll try that and come back if doesn't work. Thank you1

Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more