部署持久化 deploy/:目录结构 + 空 domains.json + 脱敏模板入库
- .gitignore 由整体排除 deploy/ 改为精确排除真实凭据(users.json/llm-upstreams.json) 与 36MB 内置凭据镜像包(*.tar.gz),保留模板与空 domains.json 可入库 - 新增 users.json.example / llm-upstreams.json.example(占位符,部署时填真实凭据) - 红线:admin 口令哈希/API Key、上游真 Key、镜像包 仍只进镜像/本地,不入库
This commit is contained in:
1 parent
6955cf845e
commit
94a48bef6e
4 files changed
+27
-2
No files matched your search
@@ -0,0 +1,14 @@
|
||||
{
|
||||
"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
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user