- .gitignore 由整体排除 deploy/ 改为精确排除真实凭据(users.json/llm-upstreams.json) 与 36MB 内置凭据镜像包(*.tar.gz),保留模板与空 domains.json 可入库 - 新增 users.json.example / llm-upstreams.json.example(占位符,部署时填真实凭据) - 红线:admin 口令哈希/API Key、上游真 Key、镜像包 仍只进镜像/本地,不入库
15 lines
460 B
JSON
15 lines
460 B
JSON
{
|
|
"admin": {
|
|
"username": "admin",
|
|
"role": "admin",
|
|
"salt": "<随机32位hex,部署时用 openssl rand -hex 16 生成>",
|
|
"pwd_hash": "<sha256(salt+password),部署时生成,例如:hashlib.sha256((salt+password).encode()).hexdigest()>",
|
|
"api_key": "<sk_开头的随机密钥,部署时生成,网关鉴权用>",
|
|
"allowed_models": [],
|
|
"llm_rpm": 60,
|
|
"llm_daily": 0,
|
|
"temp_grant_until": 0,
|
|
"created_at": 0
|
|
}
|
|
}
|