Fixed typo

This commit is contained in:
2026-02-21 15:44:41 +01:00
parent 238830b779
commit 5256d4cbbf
2 changed files with 10 additions and 2 deletions

10
main.py
View File

@@ -11,4 +11,12 @@ app.include_router(web_router)
app.mount("/static", StaticFiles(directory="static"), name="static")
if __name__ == "__main__":
uvicorn.run(app, host=config['server']['host'], port=config['server']['port'])
root_p = config['server'].get('root_path', "")
uvicorn.run(
"main:app",
reload=True,
host=config['server']['host'],
port=config['server']['port'],
root_path=root_p,
proxy_headers=True, # Wichtig für Caddy
forwarded_allow_ips="*")