0Pricing
Flask Academy · Lesson

Front It with Nginx and Compose

Reverse proxy and orchestrate the stack.

Why Add Nginx

Gunicorn runs your app, but Nginx sits in front as a reverse proxy. It handles the messy public-facing work so Gunicorn can focus on Python. 🛡️

What a Reverse Proxy Does

A reverse proxy receives every client request first, then forwards it to Gunicorn and relays the response back out.

All lessons in this course

  1. Why Not the Built-in Dev Server
  2. Run Flask Under Gunicorn
  3. Write a Production Dockerfile
  4. Front It with Nginx and Compose
← Back to Flask Academy