Hello! I created an AppWrite droplet in DigitalOcean from the official template. Initially, it was in an IP address. But now that I'm ready to move out of the development phase, I wanted it to live in a doman name. So I went ahead and bought a domain i.e. myapp.com. Then created an A record(server.myapp.com). It works, but there's no SSL going on. What do I need to do now? Thanks in advance.
Hey, Sure.
You'll need to add your domain in the .env file
- SSH into your droplet
- Edit the
/root/appwrite/.envfile - Set the value of
_APP_DOMAINto beserver.myapp.com - Also, set the value of
_APP_DOMAIN_TARGETto beserver.myapp.com - Set the the value of
_APP_OPTIONS_FORCE_HTTPSto beenabled - Run
docker compose up -din the folder/root/appwrite - Run
docker exec -it appwrite sslin the folder/root/appwrite
Check if accessing server.myapp.com will redirect you to a https with a valid certifcate.
P.s. sometime as the browser keeps small cache for SSL, it'll be best to restart the browser.
You can read more here https://appwrite.io/docs/certificates
Thank you so much! Worked like magic.
[SOLVED] How do I get SSL working in DigitalOcean?
Recommended threads
- Function deployment failed: Unable to re...
Hi Appwrite team, I have been experiencing persistent errors when i attempt to push my appwrite functions. The logs on the deployment detail page on the console...
- Github connection error - Self Hosted Ap...
I am trying to connect my github account to deploy a project to sites, but Connect to Gtihub button is disabled. I have configured all Env variables needed for...
- One to many 2 way, console UI not correc...
Hey, seems I'm facing the exactly same issue with this one: https://github.com/appwrite/appwrite/issues/6016 Since this Github issue stay open for so long, let ...