Flask + uWSGI + nginx + Redis

You
216.73.216.38
->
Traefik
TLS termination
->
nginx
HTTP
->
uWSGI
uwsgi protocol
->
Flask
Python app
->
Redis
Data store

Hit Counter

11

Stored in Redis, persists across requests

Request Info

URLhttps://flask-example.computemachines.com/
Hostflask-example.computemachines.com
Schemehttps
Remote Address172.18.0.2

Proxy Headers

X-Forwarded-For216.73.216.38
X-Forwarded-Protohttps
X-Forwarded-Hostflask-example.computemachines.com

These headers are set by Traefik and passed through nginx via uwsgi_param. Flask's ProxyFix middleware uses them to determine the real client IP and protocol.

API Endpoints

GET /healthHealth check (JSON)
GET /statsRedis stats (JSON)
POST /echoStore message in Redis (JSON)