Adapt GUI for cloudflare temp mail

This commit is contained in:
GitHub Actions
2026-03-21 09:25:24 +08:00
parent 77b71dcf2a
commit 8678b966d9
7 changed files with 828 additions and 270 deletions

52
config_gui.example.jsonc Normal file
View File

@@ -0,0 +1,52 @@
{
// Cloudflare Temp Mail 后端 API 地址
"api_base": "https://temp-email-api.example.com",
// 默认创建邮箱使用的域名
"domain": "example.com",
// 当前仅支持 cloudflare_temp_email
"backend_type": "cloudflare_temp_email",
// cloudflare_temp_email 的管理员密码
"bearer": "replace-with-your-admin-password",
// 可选代理,例如 http://127.0.0.1:7890
"proxy": "",
// 是否在界面中显示密码明文
"show_passwords": false,
// 是否自动刷新邮件列表
"auto_refresh": false,
// 自动刷新间隔,单位秒
"refresh_interval": 30,
// 是否启用数据库
"db_enabled": true,
// 数据库类型postgresql 或 mysql
"db_type": "postgresql",
// 数据库主机
"db_host": "127.0.0.1",
// 数据库端口
"db_port": 5432,
// 数据库名称
"db_name": "mail_accounts_db",
// 存放邮箱账号的表名
"db_table": "registered_accounts",
// 数据库用户名
"db_user": "postgres",
// 数据库密码
"db_password": "replace-with-your-db-password",
// 勾选后,数据库或表不存在时允许自动创建
"db_auto_create": false
}