容量管理: 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 容量管理章节
59 lines
2.1 KiB
HTML
59 lines
2.1 KiB
HTML
<!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">管理员创建即生效,跳过审核流程。</div>
|
|
<form id="createDomainForm" class="grid-form">
|
|
<div>
|
|
<label for="cdSubRand">子域名</label>
|
|
<div class="sub-build">
|
|
<span class="seg" id="cdSubPre">i</span>
|
|
<input id="cdSubRand" type="text" inputmode="numeric" autocomplete="off" spellcheck="false" maxlength="8" placeholder="8位数字" required>
|
|
<span class="seg" id="cdSubSuf">dm</span>
|
|
<button type="button" class="btn-sm" id="cdSubRoll" title="重新生成 8 位随机数">换一个</button>
|
|
</div>
|
|
<div class="muted mono" id="cdSubPreview" style="font-size:12px;margin-top:5px"></div>
|
|
</div>
|
|
<div><label for="cdBackend">后端地址</label><input id="cdBackend" type="text" placeholder="192.168.1.7:89" required></div>
|
|
<div>
|
|
<label for="cdType">类型</label>
|
|
<select id="cdType">
|
|
<option value="long">长期</option>
|
|
<option value="temp">临时(6 小时)</option>
|
|
</select>
|
|
</div>
|
|
<div><label for="cdOwner">归属账号</label><select id="cdOwner"></select></div>
|
|
<div><button class="btn-primary btn-block" type="submit">创建并放行</button></div>
|
|
</form>
|
|
</div>
|
|
|
|
<div class="panel">
|
|
<h2>全部域名</h2>
|
|
<div class="desc">临时域名到期后自动失效(状态变为「已过期」),记录保留供查阅。</div>
|
|
<table>
|
|
<thead><tr>
|
|
<th>子域名</th><th>后端</th><th>类型</th><th>归属</th><th>状态</th><th>到期</th><th>操作</th>
|
|
</tr></thead>
|
|
<tbody id="domainsBody"></tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
|
|
<div id="toast"></div>
|
|
|
|
<script src="assets/core.js"></script>
|
|
<script src="assets/domains.js"></script>
|
|
</body>
|
|
</html>
|