Files
ipass-plugin-cache/www/users.html
T
ssw 43718bd0c4 iPass cache gateway 源码
容量管理: zones.rs 直读 nginx file_cache 共享内存记账(双轴: 磁盘 + keys_zone 索引内存), ?scan=1 扫盘上限 20 万文件; POST /api/admin/cache/purge 整区清理(只删文件不删目录, 根治 [crit] mkdir failed); POST /api/admin/cache/invalidate 按制品精准失效(预览->确认两步式, glob/子串, 删除上限 5000/扫描上限 20 万); GET /api/admin/cache 新增 capacity 块; 前端容量面板 + 按制品失效工具条; 测试 test-cache-capacity.sh 48/48(容量 27 + 精准失效 21, 含 EXPECT_MIN 护栏与前端静态契约); docs 容量管理章节
2026-09-21 09:25:11 +08:00

51 lines
2.0 KiB
HTML
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<base href="/admin/">
<title>账号管理 · 尚数网 山海关</title>
<link rel="stylesheet" href="assets/admin.css">
</head>
<body>
<div id="shell"></div>
<div class="wrap">
<div class="panel">
<h2>新建账号</h2>
<div class="desc">每个账号自动生成一个随机 API Key,用于调用申请接口。勾选「临时授权权限」后,该账号申请临时域名可免审核直接放行,权限本身 6 小时后失效。</div>
<form id="createUserForm" class="grid-form">
<div><label for="cuName">账号名</label><input id="cuName" type="text" placeholder="wuguirong" required></div>
<div><label for="cuDisplay">展示名(中文姓名,可空)</label><input id="cuDisplay" type="text" placeholder="吴桂荣"></div>
<div><label for="cuPass">初始密码</label><input id="cuPass" type="text" placeholder="至少 6 位" required></div>
<div>
<label for="cuRole">角色</label>
<select id="cuRole">
<option value="user">普通账号</option>
<option value="admin">管理员</option>
</select>
</div>
<div class="checkbox"><input id="cuGrant" type="checkbox"><label for="cuGrant" style="margin:0">给临时授权权限(6h)</label></div>
<div><button class="btn-primary btn-block" type="submit">创建账号</button></div>
</form>
</div>
<div class="panel">
<h2>账号列表</h2>
<div class="desc">API Key 完整值在创建时展示一次;此处可复制或重置。</div>
<table>
<thead><tr>
<th>账号</th><th>角色</th><th>API Key</th><th>LLM 用量</th><th>临时授权权限</th><th>域名</th><th>操作</th>
</tr></thead>
<tbody id="usersBody"></tbody>
</table>
</div>
</div>
<div id="toast"></div>
<script src="assets/core.js"></script>
<script src="assets/users.js"></script>
</body>
</html>