DEV Community

Discussion on: Deploying FastAPI (and other) apps with HTTPS powered by Traefik

Collapse
 
hanzohan profile image
hanzohan • Edited

traefik.http.routers.app-https.middlewares=admin-auth

should we use above command inside docker-compose.yml?
i got response with 401 UNAUTHORIZED everytime i request to my FastAPI app..

Collapse
 
breinbaas profile image
Rob van Putten

Yes, I had the same problem and as long as you make sure to add authorization to your API this should be fine to comment out.