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

@@ -1,26 +0,0 @@
server:
host: "0.0.0.0"
port: 8080
mode: "release"
database:
host: "postgres"
port: 5432
user: "sub2api"
password: "${POSTGRES_PASSWORD}"
dbname: "sub2api"
redis:
host: "redis"
port: 6379
password: ""
jwt:
secret: "${JWT_SECRET}"
expire_hour: 24
default:
user_concurrency: 5
user_balance: 0
api_key_prefix: "sk-"
rate_multiplier: 1.0