修改配置
This commit is contained in:
2
.gitignore
vendored
2
.gitignore
vendored
@@ -30,7 +30,7 @@ registered_accounts.json
|
||||
*.tmp
|
||||
|
||||
# Configuration with secrets
|
||||
config.py
|
||||
myconfig.py
|
||||
|
||||
# Claude Code
|
||||
.claude/
|
||||
|
||||
@@ -1,49 +0,0 @@
|
||||
# config.example.py
|
||||
"""全局配置模板 - 复制为 config.py 并填入真实信息"""
|
||||
|
||||
# OpenAI 端点
|
||||
AUTH_BASE_URL = "https://auth.openai.com"
|
||||
SENTINEL_BASE_URL = "https://sentinel.openai.com/sentinel"
|
||||
|
||||
# 临时邮箱配置
|
||||
TEMPMAIL_CONFIG = {
|
||||
'api_base_url': 'https://your.tempmail.domain', # 你的临时邮箱 API 地址
|
||||
|
||||
# 方式1:用户名密码登录(推荐)
|
||||
'username': 'your_username', # 你的临时邮箱系统用户名
|
||||
'password': 'your_password', # 你的密码
|
||||
|
||||
# 方式2:JWT Token(备用)
|
||||
# 'admin_token': 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...',
|
||||
|
||||
# 域名选择(0=第1个域名, 1=第2个, 2=第3个)
|
||||
'domain_index': 0, # 改成 0, 1, 或 2 来选择不同的域名后缀
|
||||
}
|
||||
|
||||
# SDK 路径
|
||||
SDK_JS_PATH = "assets/sdk.js"
|
||||
|
||||
# 浏览器指纹配置
|
||||
FINGERPRINT_CONFIG = {
|
||||
'user_agent': 'Mozilla/5.0 (X11; Linux x86_64; rv:146.0) Gecko/20100101 Firefox/146.0',
|
||||
'screen_width': 1920,
|
||||
'screen_height': 1080,
|
||||
'languages': ['en-US', 'en'],
|
||||
'hardware_concurrency': 8,
|
||||
'platform': 'Linux x86_64',
|
||||
}
|
||||
|
||||
# HTTP 配置
|
||||
HTTP_CONFIG = {
|
||||
'impersonate': 'chrome110', # curl-cffi 的浏览器模拟
|
||||
'timeout': 30,
|
||||
}
|
||||
|
||||
# PoW 配置
|
||||
POW_CONFIG = {
|
||||
'max_attempts': 500000, # SDK 默认值
|
||||
'timeout': 60, # 求解超时(秒)
|
||||
}
|
||||
|
||||
# 调试模式
|
||||
DEBUG = True
|
||||
19
config.py
19
config.py
@@ -1,10 +1,25 @@
|
||||
# config.py
|
||||
"""全局配置"""
|
||||
# config.example.py
|
||||
"""全局配置模板 - 复制为 config.py 并填入真实信息"""
|
||||
|
||||
# OpenAI 端点
|
||||
AUTH_BASE_URL = "https://auth.openai.com"
|
||||
SENTINEL_BASE_URL = "https://sentinel.openai.com/sentinel"
|
||||
|
||||
# 临时邮箱配置
|
||||
TEMPMAIL_CONFIG = {
|
||||
'api_base_url': 'https://your.tempmail.domain', # 你的临时邮箱 API 地址
|
||||
|
||||
# 方式1:用户名密码登录(推荐)
|
||||
'username': 'your_username', # 你的临时邮箱系统用户名
|
||||
'password': 'your_password', # 你的密码
|
||||
|
||||
# 方式2:JWT Token(备用)
|
||||
# 'admin_token': 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...',
|
||||
|
||||
# 域名选择(0=第1个域名, 1=第2个, 2=第3个)
|
||||
'domain_index': 0, # 改成 0, 1, 或 2 来选择不同的域名后缀
|
||||
}
|
||||
|
||||
# SDK 路径
|
||||
SDK_JS_PATH = "assets/sdk.js"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user