In one of my previous articles I gave a manual guide about public endpoints setup. When you scale, such a setup on every new server becomes a significant overhead. The best way to tackle that is to automate it.

Like before, I use Ansible for infrastructure management. I prepared a playbook which does the following:

  • generates certificates using Let’s Encrypt
  • sets up Nginx to proxy node’s endpoints

As simple as that! Just follow the guide and feel free to report issues and contribute!