修改配置

This commit is contained in:
dela
2026-01-10 18:58:13 +08:00
parent f7f45dbeff
commit f4d71d38fd
3 changed files with 18 additions and 52 deletions

2
.gitignore vendored
View File

@@ -30,7 +30,7 @@ registered_accounts.json
*.tmp
# Configuration with secrets
config.py
myconfig.py
# Claude Code
.claude/

View File

@@ -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', # 你的密码
# 方式2JWT 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

View File

@@ -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', # 你的密码
# 方式2JWT Token备用
# 'admin_token': 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...',
# 域名选择(0=第1个域名, 1=第2个, 2=第3个)
'domain_index': 0, # 改成 0, 1, 或 2 来选择不同的域名后缀
}
# SDK 路径
SDK_JS_PATH = "assets/sdk.js"