feat: save registered accounts to postgres

This commit is contained in:
mmc
2026-03-19 14:32:17 +08:00
parent 6a250fe6a1
commit 2904e43b1f
11 changed files with 235 additions and 4 deletions

View File

@@ -52,6 +52,8 @@ python3 /root/standalone_cli/run.py config setup
`config init` 只是初始化配置文件;`config setup` 才是交互式配置引导。
`config setup` 现在也支持交互式填写 PostgreSQL 入库配置。
初始化后请编辑:
- `/root/standalone_cli/data/sync_config.json`
@@ -65,6 +67,19 @@ python3 /root/standalone_cli/run.py config setup
- `bearer_token``email` + `password`
- 邮箱提供商配置 `mail_provider_configs`
如果你希望注册成功后把邮箱、GPT 密码、邮箱密码、姓名、生日等信息写入 PostgreSQL还需要填写
- `db_enabled`
- `db_host`
- `db_port`
- `db_name`
- `db_user`
- `db_password`
- `db_table`
- `db_source`
当前你这边实际使用的数据库名是:`mail_accounts_db`
当前这台机器实测可用的代理是:
- `http://127.0.0.1:17891`