Add Gmail+Email Worker hybrid mail path and private runtime config

Prefer Cloudflare Worker KV for verification codes with optional short IMAP
fallback disabled for private deploy; track config.json/.env for private repo.
Also add worker project, protocol mint backoff, and fail-fast Turnstile/mail
timeouts from batch runs.
This commit is contained in:
chaos committed 2026-07-11 23:21:23 +08:00
1 parent 187792d6be
commit 55f56d27c9
19 files changed
+1225 -85

No files matched your search

+105
View File
@@ -0,0 +1,105 @@
{
"duckmail_api_key": "",
"cloudflare_api_base": "",
"cloudflare_api_key": "",
"cloudflare_auth_mode": "none",
"cloudflare_path_domains": "/api/domains",
"cloudflare_path_accounts": "/api/new_address",
"cloudflare_path_token": "/api/token",
"cloudflare_path_messages": "/api/mails",
"proxy": "",
"enable_nsfw": true,
"register_count": 1,
"user_agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/138.0.0.0 Safari/537.36",
"grok2api_auto_add_local": false,
"grok2api_local_token_file": "",
"grok2api_pool_name": "ssoBasic",
"grok2api_auto_add_remote": false,
"grok2api_remote_base": "http://127.0.0.1:8000/admin/api",
"grok2api_remote_app_key": "",
"register_threads": 1,
"thread_start_interval": 0.8,
"show_tutorial_on_start": false,
"cloudmail_url": "",
"cloudmail_admin_email": "",
"cloudmail_password": "",
"cpa_gui_close_mint_browser": true,
"hotmail_accounts_file": "mail_credentials.txt",
"hotmail_alias_mode": "random",
"hotmail_alias_random_length": 8,
"hotmail_alias_random_max_attempts": 200,
"hotmail_max_aliases_per_account": 5,
"hotmail_poll_interval": 5,
"hotmail_recent_seconds": 900,
"hotmail_imap_hosts": "outlook.office365.com,imap-mail.outlook.com",
"hotmail_imap_last_n": 30,
"hotmail_require_recipient_match": true,
"email_provider": "gmail",
"defaultDomains": "zhangyunuo.net",
"yyds_api_key": "",
"yyds_jwt": "",
"register_max_attempts": 30,
"account_hard_timeout": 720,
"nav_email_button_timeout": 12,
"email_form_timeout": 20,
"mail_timeout": 50,
"mail_poll_interval": 1,
"mail_retry_count": 3,
"code_form_timeout": 180,
"profile_timeout": 50,
"turnstile_retry_limit": 3,
"turnstile_stuck_timeout": 150,
"sso_timeout_base": 60,
"sso_timeout_max": 480,
"sso_progress_extension": 120,
"sso_cookie_read_timeout": 20,
"email_submit_confirm_timeout": 30,
"grok2api_import_retries": 5,
"grok2api_import_retry_delay": 2,
"api_reverse_tools": "",
"cpa_export_enabled": true,
"cpa_auth_dir": "./cpa_auths",
"cpa_copy_to_hotload": false,
"cpa_hotload_dir": "",
"cpa_base_url": "https://cli-chat-proxy.grok.com/v1",
"cpa_proxy": "",
"cpa_headless": false,
"cpa_force_standalone": true,
"cpa_mint_timeout_sec": 300,
"cpa_mint_required": false,
"cpa_probe_after_write": true,
"cpa_probe_chat": false,
"cpa_mint_workers": -1,
"cpa_mint_queue_max": 0,
"cpa_prefer_protocol": true,
"cpa_protocol_only": false,
"cpa_protocol_poll_timeout_sec": 90,
"cpa_mint_cookie_inject": true,
"cpa_mint_browser_reuse": true,
"cpa_mint_browser_recycle_every": 15,
"cpa_probe_required": false,
"gmail_imap_user": "nopjcn@gmail.com",
"gmail_imap_password": "fjjp ckmp sonv cjtq",
"gmail_imap_host": "imap.gmail.com",
"gmail_imap_port": 993,
"gmail_resend_after_sec": 45,
"cpa_auto_import_remote": false,
"cpa_remote_base": "",
"cpa_remote_password": "",
"cpa_remote_import_retries": 3,
"cpa_remote_import_retry_delay": 2,
"gmail_delete_after_code": true,
"hotmail_delete_after_code": true,
"gmail_worker_enabled": true,
"gmail_worker_url": "https://grok-xai-mail-codes.nopjcn.workers.dev",
"gmail_worker_api_key": "ZhaoChao19950510",
"gmail_worker_timeout_sec": 20,
"gmail_worker_poll_interval": 0.4,
"gmail_imap_fallback": true,
"gmail_imap_fallback_timeout_sec": 45,
"gmail_imap_fallback_resend_sec": 10,
"turnstile_fast_fail_count": 2,
"turnstile_retry_after_sec": 8,
"turnstile_retry_gap_sec": 5,
"turnstile_max_rounds": 4
}