Configuring HTTPS with NGINX on AWS
When it comes to deploying our applications, a lot of tutorials and books go through simple deployments and smooth over the concept of encrypting traffic to and from the server using HTTPS. However, HTTPS is essential and usually the biggest hurdle that a developer must overcome to get their website or API out into the world. While this book’s title is Rust Web Programming, it is essential to dedicate a chapter to truly understanding how HTTPS works so that you can implement HTTPS locally and then on the Amazon Web Services (AWS) cloud. This chapter will cover the following topics:
- What is HTTPS?
- Implementing HTTPS locally with
docker-compose
- Attaching a URL to our deployed application on AWS
- Enforcing HTTPS on our application on AWS
By the end of this chapter, you will be able to build infrastructure in Terraform code that can encrypt traffic and lock down unwanted traffic to our Elastic Compute Cloud (EC2) instances...