
I have my Ubuntu server where I have some Node.js projects running with PM2 and Nginx as a reverse proxy. These projects have SSL with Certbot.
I have installed Docker and Appwrite. Since ports 80 and 443 are used by Nginx and Certbot, I have selected ports 81 and 4433 for Appwrite. Then, I followed the documentation provided at https://appwrite.io/docs/advanced/self-hosting/tls-certificates, but I am unable to run my Appwrite instance with SSL.

You can do the same with the other projects and use nginx to handle the SSL certificates.
Just make sure to proxy to Appwrite using https on the https port

Hi Steven. Could you give some example or some link to check a guide?


But how did you generate the certs for your other apps? How did you proxy your other apps? It's the same thing

I have defined the next file into /etc/nginx/sites-available
server {
server_name app.codergym.fit;
location / {
proxy_pass http://localhost:81;
}
}
And running sudo certbot --nginx
ssl now it is working for my appwrite instance. For functions will be the same process?

So you're proxying via http, but for Appwrite, it should be https

Yes, functions will be the same

@Steven Thanks for your support .

[SOLVED] How to enabled SSL in an ubuntu 22.04 server with Nginx

[CLOSED] How to enabled SSL in an ubuntu 22.04 server with Nginx
Recommended threads
- OTP does not work on login page and user...
Hi there, Since updating from 1.6.2 to 1.7.3 the OTP function does not work anymore. I always get this error: ``` Invalid otp param: Value must be a valid str...
- Console is flooded with errors after upd...
Hi there, I ran 1.6.2 which worked great. I then used the migration guide to directly update to 1.7.3: https://appwrite.io/docs/advanced/self-hosting/update A...
- setup custom domain to appwrite but stil...
i just installed a Appwrite instance in my vps and i did all default otions exept the domain i have setuop its dns as A records pointing to my vps ip altho...
