Hi all. I was trying to deploy my functions in a custom domain, functions.mydomain.com, but it failed when Appwrite was generating an SSL certificate. My app write-worker-certificates is attached. Also, I'm using Nginx Proxy Manager to redirect the request from cloud.mydomain.com to my SERVERIP:5050 when I have installed Appwrite.
#SSL Function Custom Domain Challenge Failed
1 messages · Page 1 of 1 (latest)
I expect NPM will be intercepting the authentication request (I don’t really know NPM, but I know other reverse proxies do that). If NPM is in front of your Appwrite server, you should have NPM handle the SSL
How can I handle it? Also, I create my CNAME successfully. Do you have a guide to follow or something?
As far as I can tell, all you need to do is go to the SSL Certificates tab and click “Add SSL Certificate”, then fill in the form
I tried, but I don't know where to add the domain because functions.mydomain.com is a wildcard domain
Ah, if you want to use a wildcard domain you’ll have to do a DNS challenge
How easy that’s going to be will depend on your DNS hosting provider
Some will integrate directly with NPM
Others you’ll have to manually create new DNS records every three months
Ah, then that should be pretty simple
Here, I found this https://medium.com/@life-is-short-so-enjoy-it/homelab-nginx-proxy-manager-setup-ssl-certificate-with-domain-name-in-cloudflare-dns-732af64ddc0b
So, first, I should review the DNS CNAME for my domain.
I create two rules. One for *.functions….and the other for functions….
Well, you don’t actually need functions.. But yeah, make sure you have *.functions. pointed at your server
I'm pointing to cloud….com, it is my domain for Appwrite
Ok, whatever your server is
Done. I have my certificates for the domain with the challenge, but now when I tried to enter to https://66d9122d848a24ba3092.functions.mydomain.com/ I got ERR_SSL_VERSION_OR_CIPHER_MISMATCH. Also, I don't know if in NPM I have to add my domain in Proxy Host or Redirection Host, and point to my IP:APPWRITE_PORT