Setting up SSL with nginx on Ubuntu server
For a long time I've procrastinated to learn how to properly configure HTTPS. Turns out it is super easy. This is my simple step by step guide.
First, make sure that your nginx config can serve files from
/var/www/html - it should work by default.
Then install certbot - it is a script that will place some files into your
/var/www/html, and then use them to verify that you have the ssh access to the server, which proves that you are the domain owner.
sudo add-apt-repository ppa:certbot/certbotsudo apt-get updatesudo apt-get install certbot