Secure your Application with Let's Encrypt (TLS + Nginx + Certbot)
In this lesson I will show you how easy it is to secure HTTP (that is to use HTTPS instead of HTTP). The central character here is certbot - which is command line tool for Let's Encrypt CA. As usually there will be little theory and some practice - so that you can understand the concept easier.
Amazingly enough, there are just 3 commands to activate HTTPS for your current application:
$ sudo apt-get install certbot python-certbot-nginx
$ sudo certbot certonly --nginx
$ sudo certbot install --nginx
First command installs certbot client and its nginx module (python-certbot-nginx module know how to make changes to your nginx configurations). Second command registers the certificates for all sites found in /etc/nginx/sites-available (or whichever you pick up). The last command makes necessary changes in nginx configuration files for you.
Wow, no similar lessons found! You have just found a very unique lesson!
In this lesson we will learn about a less known feature of Django --template argument of the startproject command (of django-admin). You will learn how to create your own templates as well.
In this lesson we will automate everything we did in part 5. We will use Ansible for that. We will add two more ansible roles. The app role - which deals with …