Files
grok-keygen/.env.example
T
chaos 55f56d27c9 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.
2026-07-11 23:21:23 +08:00

43 lines
1.6 KiB
Bash
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# Grok 注册机 - 环境变量模板
# 复制为 .env 并填入真实值
# 注意:真实进程环境变量优先于 .env;多数项也可写在 config.json
# ===== Gmail IMAP(当前推荐:email_provider=gmail)=====
# 配合 Cloudflare catch-all 域名使用;密码填 Gmail「应用专用密码」
GMAIL_USER=
GMAIL_PASSWORD=
# ===== Gmail + Cloudflare Email Worker(秒级取码,IMAP 兜底)=====
# 部署见 cf-email-worker/README.md
# GMAIL_WORKER_URL=https://grok-xai-mail-codes.<subdomain>.workers.dev
# GMAIL_WORKER_API_KEY=
# 兼容别名(gmail_code_listener 会回退读取)
# MAIL_USER=
# MAIL_PASSWORD=
# ===== CloudMail 管理后台(email_provider=cloudmail 时)=====
CLOUDMAIL_URL=
CLOUDMAIL_ADMIN_EMAIL=
CLOUDMAIL_PASSWORD=
# ===== grok2api Admin(自动导入 SSO 池时)=====
GROK2API_APP_KEY=
# ===== 可选覆盖 =====
# CPA / OIDC 相关工具父目录(高级;空=用本仓库内置 cpa_xai/)
# API_REVERSE_TOOLS=
# 是否在 auto_register 中导出 CPA(0/false 关闭)
# CPA_EXPORT=1
# 代理(config.json 的 proxy / cpa_proxy 为空时会回退到这些)
# https_proxy=http://127.0.0.1:7890
# http_proxy=http://127.0.0.1:7890
# ===== CPA 远程自动导入(Management API)=====
# 写出 xai-*.json 后 POST 到 {CPA_REMOTE_BASE}/v0/management/auth-files
# 1/true/yes/on 开启;0/false/no/off 关闭(优先于 config.json 的 cpa_auto_import_remote)
CPA_AUTO_IMPORT_REMOTE=0
# 地址只填根,如 http://127.0.0.1:8317
CPA_REMOTE_BASE=
CPA_REMOTE_PASSWORD=
# 兼容别名:CPA_MANAGEMENT_PASSWORD / MANAGEMENT_PASSWORD / CPA_AUTO_IMPORT