refactor(sub2api): 重构配置管理和版本结构

移除硬编码的配置文件,改为使用环境变量
添加 0.1.106 稳定版本目录结构
更新 README 文档说明自动生成密码功能
This commit is contained in:
arch3rPro
2026-04-03 01:28:09 +08:00
parent 4259135298
commit 468cceabd9
9 changed files with 119 additions and 63 deletions

View File

@@ -15,19 +15,21 @@ additionalProperties:
labelZh: 时区
required: true
type: text
- default: sub2api_secure_jwt_secret_change_in_production
- default: sub2api-jwt-secret-change-in-production
edit: true
envKey: JWT_SECRET
labelEn: JWT Secret
labelZh: JWT 密钥
random: true
required: true
rule: paramCommon
rule: paramComplexity
type: password
- default: sub2api_secure_db_password_change_in_production
- default: sub2api_db_pass
edit: true
envKey: POSTGRES_PASSWORD
labelEn: PostgreSQL Password
labelZh: PostgreSQL 密码
random: true
required: true
rule: paramCommon
type: password
rule: paramComplexity
type: password