Rank 1: Thread
Does anyone know how to set this up or is there a tutorial?
Votes
0
Replies
14
Participants
Unknown
Messages
15
Rank 1: Thread
Does anyone know how to set this up or is there a tutorial?
Quality
Rank 1: Thread
yes but im asking specifically for https setup
Quality
1: Install Appwrite on Coolify
2: Configure HTTPS
Quality
Example of appwrite.json
{ "projectId": "YOUR_PROJECT_ID", "project": { "name": "YOUR_PROJECT_NAME" }, "functions": [ { "name": "YOUR_FUNCTION_NAME", "runtime": "node-14.5", "entrypoint": "index.js", "events": [ "database.documents.create", "database.documents.update" ] } ], "authProviders": { "microsoft": { "clientId": "YOUR_CLIENT_ID", "clientSecret": "YOUR_CLIENT_SECRET", "redirectUri": "https://your-coolify-url.ngrok.io/v1/account/sessions/oauth2/callback/microsoft/YOUR_PROJECT_ID" } }, "https": { "enabled": true, "certificates": { "cert": "/path/to/your/cert.pem", "key": "/path/to/your/key.pem" } }}Quality
3: Deploy the Configuration: Apply the updated configuration to your Appwrite instance on Coolify
Quality
At last, Use the HTTPS URL to access your Appwrite instance and verify that the SSL certificate is working correctly
Rank 1: Thread
Thank you for your reply, in my setup i have 2 hetzner servers, first one is where coolify is hosted, that thing i got on https via wildcard domain
on the second server i installed appwrite , the second server right now probably uses a generated ip address and all appwrite services thatswhy run over that ip adress over http
where exactly do you generate the certificates? on your server?
and where can i update this config?
Quality
generate SSL certificates on the Appwrite server. You can use Let’s Encrypt for this.
Quality
Steps to Generating Certificates with Let’s Encrypt (Certbot):
sudo apt-get updatesudo apt-get install certbotsudo certbot certonly --standalone -d your.domain.comQuality
Replace your.domain.com with your Appwrite server’s domain. This will create certificates in the /etc/letsencrypt/live/your.domain.com/ directory.
Quality
Once the certificates are generated, update your Appwrite configuration to use HTTPS.
Modify Appwrite Environment Variables: Update the appwrite.env or your environment variable configuration file with the paths to your SSL certificate files.
_APP_ENV=production_APP_SYSTEM_SECURITY_KEY=your-secret-key..._APP_SYSTEM_SECURITY_HTTPS=true_APP_SYSTEM_SECURITY_HTTPS_CERT=/etc/letsencrypt/live/your.domain.com/fullchain.pem_APP_SYSTEM_SECURITY_HTTPS_KEY=/etc/letsencrypt/live/your.domain.com/privkey.pem...Quality
After updating the configuration, restart your Appwrite services to apply the changes.
Quality
Quality