added middelware
All checks were successful
Build, Push, and Deploy to Nomad / docker-nomad (push) Successful in 33s

This commit is contained in:
2024-12-10 21:22:15 +01:00
parent 16578726fe
commit a8aa012c2a

1
app.py
View File

@@ -14,7 +14,6 @@ app = FastAPI()
# Mount static files
app.mount("/static", StaticFiles(directory="static"), name="static")
app.add_middleware( HTTPSRedirectMiddleware )
app.add_middleware(TrustedHostMiddleware, allowed_hosts=["*"])