自建邮箱版本

This commit is contained in:
huangzhenpc
2025-04-07 13:14:29 +08:00
parent 9d00c0b58e
commit 901c8c95e1
8 changed files with 699 additions and 19 deletions

75
config_example.yaml Normal file
View File

@@ -0,0 +1,75 @@
# 全局配置
global:
max_concurrency: 20
timeout: 30
retry_times: 3
# 服务器配置
server_config:
hostname: "sg424" # 服务器标识用于API调用
# 数据库配置
database:
# SQLite配置兼容旧版本
path: "cursor.db"
pool_size: 10
# MySQL配置
host: "localhost"
port: 3306
username: "auto_cursor_reg"
password: "this_password_jiaqiao"
database: "auto_cursor_reg"
# 是否使用Redis缓存
# 如果使用Python 3.12请确保安装redis>=4.2.0而不是aioredis
use_redis: true
# Redis配置可选当use_redis为true时生效
redis:
host: "127.0.0.1"
port: 6379
password: ""
db: 0
# 代理配置
proxy:
api_url: "https://share.proxy.qg.net/get?key=969331C5&num=1&area=&isp=0&format=txt&seq=\r\n&distinct=false"
batch_size: 100
check_interval: 300
# API专用代理可选
api_proxy: "http://1ddbeae0f7a67106fd58:f72e512b10893a1d@gw.dataimpulse.com:823"
# 注册配置
register:
delay_range: [1, 2]
batch_size: 15
#这里是注册的并发数量
# 邮件配置
email:
file_path: "email.txt"
# 自建邮箱服务配置
# 如果添加了这部分配置,系统将优先使用自建邮箱进行注册
self_hosted_email:
api_base_url: "https://api.cursorpro.com.cn"
api_key: "your_api_key_here" # 可选如果API需要认证
# 自动服务配置
auto_service:
check_interval: 60 # 检查API状态的间隔
upload_interval: 300 # 上传账号间隔(秒)
email_check_threshold: 30 # 当可用邮箱少于这个数时获取新邮箱
captcha:
provider: "capsolver" # 可选值: "capsolver" 或 "yescaptcha"
capsolver:
api_key: "CAP-36D01B0995C7C8705DF68ACCFE4E2004FE182DDA72AC5A80F25F1E3B601C31F0"
website_url: "https://authenticator.cursor.sh"
website_key: "0x4AAAAAAAMNIvC45A4Wjjln"
yescaptcha:
client_key: "a5ef0062c1d2674900e78722c5670e3a3484bc8c64273"
website_url: "https://authenticator.cursor.sh"
website_key: "a5ef0062c1d2674900e78722c5670e3a3484bc8c64273"
use_cn_server: false