@@ -84,6 +84,10 @@ To deploy Synapse and Mastodon, you need to deploy a database server. We are goi
For more details to do this, I refer you to [this link](https://stribny.name/blog/ansible-postgresql/) which will walk you through how to deal with this.
If you are feeling adventurous you can install postgresql using [docker](https://github.com/levonet/ansible-docker-postgres).
Either way, you need to install this on youd DB machine, which should be the one with the least amount of RAM.
## Create a certificate for our deployments
We need to use a certificate to secure HTTPS communication, both the Mastodon and Matrix protocols require it. This can be done manually for the moment and automated later, as it is not super straightforward. I refer you to the [documentation on certbot + nginx](https://www.digitalocean.com/community/tutorials/how-to-secure-nginx-with-let-s-encrypt-on-ubuntu-20-04) I would recommend that you create a `mastodon.<yourdomain>` and a `matrix.<yourdomain>` certificate, then back them up somewhere safe as Letsencrypt has pretty aggressive rate limiting with regard to certificate creations.