0PricingLogin
Django Academy · Lesson

Nginx as a Reverse Proxy

Front Gunicorn and serve static files.

Why Add Nginx

Gunicorn runs your code, but it should not face the raw internet alone. A reverse proxy sits in front and shields it. 🛡️

What a Reverse Proxy Does

A reverse proxy receives every browser request, then forwards it to Gunicorn and relays the answer back. The client never talks to Gunicorn directly.

All lessons in this course

  1. Gunicorn as the WSGI Server
  2. Nginx as a Reverse Proxy
  3. WhiteNoise for Static Files
  4. Environment Variables and Settings Split
← Back to Django Academy