Provide user info in Remote-* headers. Caddy configuration improved.

This commit is contained in:
2025-09-26 06:12:40 +00:00
parent f28e69a9ce
commit 39ba032450
9 changed files with 109 additions and 51 deletions
+6
View File
@@ -54,6 +54,12 @@ app.mount(
)
@app.get("/")
async def frontapp_redirect(request: Request):
"""Redirect root (in case accessed on backend) to the main authentication app."""
return RedirectResponse(request.url_for("frontapp"), status_code=303)
@app.get("/auth/")
async def frontapp():
"""Serve the main authentication app."""