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
- Backup does not restore
I need to urgently restore a backup but nothing is happening when trying to restore!
- Urgent help with removed databases
Hi <@564158268319203348> <@501784879638249472> I wrote to paid plan support about this but no response as of yet… About an hour ago one of the interns from o...
- proccessing problems
A database schema operation is stuck in my Frankfurt project. In the matryq database, the workspaceId attribute of the coaching_activity_entries collection rema...