From 3c8d51c758bc1f7d060dd4e4fbdb436c822db378 Mon Sep 17 00:00:00 2001 From: Henrik Jess Nielsen Date: Tue, 10 Dec 2024 21:49:15 +0100 Subject: [PATCH] added middelware --- app.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app.py b/app.py index e3f7840..a535336 100644 --- a/app.py +++ b/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")