
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/.env
file - Set the value of
_APP_DOMAIN
to beserver.myapp.com
- Also, set the value of
_APP_DOMAIN_TARGET
to beserver.myapp.com
- Set the the value of
_APP_OPTIONS_FORCE_HTTPS
to beenabled
- Run
docker compose up -d
in the folder/root/appwrite
- Run
docker exec -it appwrite ssl
in 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
- Where is tensorflow support? 3.11 ML doe...
and if i manually tried to add tensorflow i get Cannot access offset of type string on string no matter what
- OAuth2 Error: invalid success param url ...
Hi everyone! I'm trying to implement Google OAuth2 login in a React Native app (using the Android simulator) with Appwrite Cloud, and I'm getting the following ...
- Relationships restricted to a max depth ...
When I do query like: ``` await _databases.listDocuments( databaseId: AppwriteConfig.DATABASE_ID, collectionId: AppwriteConfig.SERVICES_COLLECTI...
