#Custom domain behind Nginx Proxy Manager - how generate certificate

6 messages · Page 1 of 1 (latest)

empty falcon
#

Self-hosted Appwrite behing Nginx Proxy Manager. NPM takes care of certificates via DNS challenge.
I want to add new Custom Domain but it is failing at the certificate generation step:

Failed to issue a certificate with message: Saving debug log to /var/log/letsencrypt/letsencrypt.log
Plugins selected: Authenticator webroot, Installer None
Performing the following challenges:
http-01 challenge for domain.example.com
Using the webroot path /storage/certificates for all unmatched domains.
Waiting for verification...
Challenge failed for domain domain.example.com
http-01 challenge for domain.example.com
Cleaning up challenges
Some challenges have failed.
Ask for help or search for solutions at https://community.letsencrypt.org. See the logfile /var/log/letsencrypt/letsencrypt.log or re-run Certbot with -v for more details.

How to get pass this verification failure? Can I disable Appwrite from trying to gen certificate for the custom domain? Can I configure Appwrite to use DNS challenge?

somber summit
empty falcon
#

hm, are you sure about that? I need a custom domain in order to be able to properly set the authentication cookie for my app. If I do not set a custom domain (e.g. appwrite.mydomain.com) for my app (app.mydomain.com) I am not able to propely login. What am I missing?

somber summit
#

also, make sure you're proxying from NPM to appwrite using HTTPS and not http

empty falcon
#

aha, so custom domains are only needed when we are using Appwrite's Traefik as proxy? thank you, @somber summit !