diff --git a/llm_team_ui.py b/llm_team_ui.py index fcea33b..9bfe5ba 100644 --- a/llm_team_ui.py +++ b/llm_team_ui.py @@ -318,6 +318,16 @@ def demo_set_allowlist(): return jsonify({"ips": sorted(ALLOWLIST_IPS)}) +@app.route("/logs") +@admin_required +def logs_page(): + try: + with open("/var/www/html/report.html") as f: + return f.read() + except Exception: + return "GoAccess report not found. Run: goaccess /var/log/nginx/access.log -o /var/www/html/report.html --log-format=COMBINED", 404 + + CONFIG_PATH = "/root/llm_team_config.json" DEFAULT_CONFIG = { "providers": { @@ -1275,7 +1285,7 @@ ADMIN_HTML = r"""