Skip to content
Discussion options

You must be logged in to vote

Traefik works as a high performance TLS termination proxy, you can read more about it here: https://fastapi.tiangolo.com/deployment/https/

It sits in front of everything, handling HTTPS for everything underneath. It handles obtaining HTTPS certificates automatically.

Nginx could do some parts of that, but it wouldn't be able to obtain HTTPS certificates automatically.

In this project, Nginx is used to serve files, static files, for the frontend (which Traefik can't do).

So, Traefik is on top of everything, handling HTTPS, then underneath is Nginx serving static frontend files.

A request goes:

your browser -> HTTPS to Traefik -> HTTP to Nginx

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by tiangolo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
3 participants
Converted from issue

This discussion was converted from issue #356 on January 22, 2026 20:53.