修改默认值

This commit is contained in:
xiaobai committed 2026-03-24 17:51:23 +08:00
1 parent a1867fd03e
commit 6faee25ba7
4 files changed
+38 -19

No files matched your search

+4 -4
View File
@@ -188,13 +188,13 @@
<div id="section-config" class="section">
<div class="panel">
<h3>Cliproxy 管理端(巡检必填)</h3>
<p style="color:var(--muted);font-size:0.8rem;margin:0 0 12px;line-height:1.5">与 <a href="https://help.router-for.me/cn/management/api" target="_blank" rel="noopener">管理 API</a> 一致。若<strong>注册成功后的 JSON 已迁入 Cliproxy 的 auth 目录</strong>,须填写下方「统计目录」为该目录绝对路径,否则维护台仍只扫项目内 <code>accounts/oauth</code>,账号数会显示 0。巡检按该目录下的文件名调用 <code>auth-files/models</code>;删除失效 JSON 也在该目录内。密钥存 SQLite。</p>
<label>统计 / 巡检用 Codex JSON 目录(留空 = 项目内 accounts/oauth)</label>
<p style="color:var(--muted);font-size:0.8rem;margin:0 0 12px;line-height:1.5">与 <a href="https://help.router-for.me/cn/management/api" target="_blank" rel="noopener">管理 API</a> 一致。若<strong>注册成功后的 JSON 已迁入 Cliproxy 的 auth 目录</strong>,请填写下方「统计目录」为该目录绝对路径;留空时使用部署侧固定目录(<code>maintain/paths_config.py</code> 的 <code>CPA_AUTHS_DIR</code>)。巡检按该目录下的文件名调用 <code>auth-files/models</code>;删除失效 JSON 也在该目录内。密钥存 SQLite。</p>
<label>统计 / 巡检用 Codex JSON 目录(留空 = fixed CPA_AUTHS_DIR)</label>
<input type="text" id="cfgStatsOauthDir" placeholder="/root/.cli-proxy-api 或你的 CPA auth 绝对路径" />
<label>管理 Base(如 http://127.0.0.1:8317,勿带 /v0/management)</label>
<label>管理 Base(默认 http://127.0.0.1:8317,勿带 /v0/management)</label>
<input type="text" id="cfgClipBase" placeholder="http://127.0.0.1:8317" />
<label>Management Key(Bearer)</label>
<input type="password" id="cfgClipKey" autocomplete="new-password" placeholder="留空表示不修改已保存的密钥" />
<input type="password" id="cfgClipKey" autocomplete="new-password" placeholder="留空表示不修改;也可用环境变量 CLIPROXY_MANAGEMENT_KEY / MANAGEMENT_KEY" />
<label>探测超时(秒)</label>
<input type="number" id="cfgClipTimeout" min="5" max="120" value="30" />
<label>失效清理阈值(连续失败次数)</label>