All chapters

Chapter 10: NGINX, Containers, and Let's Encrypt

In this chapter, discover how Talk Python uses NGINX as a front-line server and reverse proxy for high-performance HTTPS routing. You’ll see exactly how NGINX connects to Python app servers like Granian or Uvicorn, handling SSL, static file serving, and domain routing. Learn how to automate free SSL certificates with Let’s Encrypt and Certbot, even in a locked-down Docker environment. Through example configurations, you’ll gain insights into mapping volumes for certificate management, creating auto-renew cron jobs, and handling multi-domain setups. Explore these approaches to build a secure, flexible, and modern web stack without locking yourself into proprietary cloud services.

Buy the full book to get this chapter
Next up: Chapter 11: CDNs
Talk Python's Mastodon Michael Kennedy's Mastodon