Running this example: install traefik run: traefik --configFile=traefik.toml then in another shell run: uvicorn app:app alternatively, delete root_path="/api" from app.py and run: uvicorn app:app --root-path /api