generated from hjess/PythonTemplateProject
added middelware
All checks were successful
Build, Push, and Deploy to Nomad / docker-nomad (push) Successful in 31s
All checks were successful
Build, Push, and Deploy to Nomad / docker-nomad (push) Successful in 31s
This commit is contained in:
2
app.py
2
app.py
@@ -29,7 +29,7 @@ app = FastAPI()
|
||||
# Mount static files
|
||||
app.mount("/static", StaticFiles(directory="static"), name="static")
|
||||
app.add_middleware(ProxyHeadersMiddleware)
|
||||
app.add_middleware(TrustedHostMiddleware, allowed_hosts=["lifefaq.nomad.i80.dk", "localhost"])
|
||||
app.add_middleware(TrustedHostMiddleware, allowed_hosts=["lifefaq.nomad.i80.dk", "lifefaq.i80.dk","localhost"])
|
||||
|
||||
# Templates directory
|
||||
templates = Jinja2Templates(directory="templates")
|
||||
|
||||
Reference in New Issue
Block a user