Reverse Proxies & HTTPS
Nginx, TLS, load balancing, caching.
Revision Sheet
- Reverse Proxy: Intermediary between internet and internal servers. Handles SSL, load balancing, caching.
- Nginx: Event-driven, async web server. Fixes C10k problem.
- SSL Termination: Decrypting HTTPS at the proxy layer, passing HTTP to backend.
- X-Forwarded-For: Header used to pass the real client IP to the backend.
- Load Balancing: Distributing traffic across multiple backend servers using an
upstreamblock. - Let's Encrypt / Certbot: Tools to automate free, rotating TLS certificates.
Connections
Now that you understand how to securely expose and scale an application using a reverse proxy, we need to ensure the application itself doesn't crash under load. In the next chapter, we will explore Containerization with Docker, allowing us to rapidly spin up identical instances of our backend so Nginx always has healthy targets to route traffic to.