mirror of
https://github.com/TheSmallHanCat/flow2api.git
synced 2026-05-08 06:49:25 +08:00
72 lines
2.5 KiB
TOML
72 lines
2.5 KiB
TOML
[global]
|
||
api_key = "han1234"
|
||
admin_username = "admin"
|
||
admin_password = "admin"
|
||
|
||
[flow]
|
||
labs_base_url = "https://labs.google/fx/api"
|
||
api_base_url = "https://aisandbox-pa.googleapis.com/v1"
|
||
timeout = 120
|
||
max_retries = 3
|
||
image_request_timeout = 40
|
||
image_timeout_retry_count = 1
|
||
image_timeout_retry_delay = 0.8
|
||
image_timeout_use_media_proxy_fallback = true
|
||
image_prefer_media_proxy = false
|
||
image_slot_wait_timeout = 480
|
||
image_launch_soft_limit = 20
|
||
image_launch_wait_timeout = 480
|
||
image_launch_stagger_ms = 0
|
||
video_slot_wait_timeout = 480
|
||
video_launch_soft_limit = 20
|
||
video_launch_wait_timeout = 480
|
||
video_launch_stagger_ms = 0
|
||
poll_interval = 3.0
|
||
max_poll_attempts = 200
|
||
|
||
[server]
|
||
host = "0.0.0.0"
|
||
port = 8000
|
||
|
||
[debug]
|
||
enabled = false
|
||
log_requests = true
|
||
log_responses = true
|
||
mask_token = true
|
||
|
||
[proxy]
|
||
proxy_enabled = false
|
||
proxy_url = ""
|
||
|
||
[generation]
|
||
image_timeout = 300
|
||
video_timeout = 1500
|
||
|
||
[call_logic]
|
||
call_mode = "default" # default=随机轮询策略, polling=顺序轮询策略
|
||
|
||
[admin]
|
||
error_ban_threshold = 3
|
||
|
||
[cache]
|
||
enabled = false
|
||
timeout = 7200 # 缓存超时时间(秒), 默认2小时; 设置为0表示不自动删除缓存
|
||
base_url = "" # 缓存文件访问的基础URL, 留空则使用服务器地址
|
||
|
||
[captcha]
|
||
captcha_method = "extension" # 打码方式: extension/yescaptcha/browser/personal/remote_browser
|
||
browser_recaptcha_settle_seconds = 3.0 # reload/clr 就绪后的额外稳态等待
|
||
browser_count = 1 # browser 模式的有头浏览器实例数量
|
||
personal_project_pool_size = 4 # personal 模式下单个 Token 默认维护的项目池数量(仅影响项目轮换,不决定打码标签页数量)
|
||
personal_max_resident_tabs = 5 # personal 模式共享打码标签页上限,所有 Token/project 共用这组 tab
|
||
browser_personal_fresh_restart_every_n_solves = 10 # personal 模式成功获取多少个码后清理并重启浏览器,0 表示禁用
|
||
personal_idle_tab_ttl_seconds = 600 # personal 模式标签页空闲回收时间(秒)
|
||
yescaptcha_api_key = "" # YesCaptcha API密钥
|
||
yescaptcha_base_url = "https://api.yescaptcha.com"
|
||
yescaptcha_task_type = "RecaptchaV3TaskProxylessM1" # 可选: RecaptchaV3TaskProxyless/RecaptchaV3TaskProxylessM1/RecaptchaV3TaskProxylessM1S7/RecaptchaV3TaskProxylessM1S9
|
||
remote_browser_base_url = "" # 远程有头打码服务地址
|
||
remote_browser_api_key = "" # 远程有头打码服务 API Key
|
||
remote_browser_timeout = 60 # 远程有头打码请求超时(秒)
|
||
capsolver_api_key = ""
|
||
capsolver_base_url = "https://api.capsolver.com"
|