claude-code-remote-remake/.env.example

49 lines
1.2 KiB
Plaintext
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.

# Claude Code Remote Email Configuration
# ===== SMTP 发送邮件配置 =====
SMTP_HOST=smtp.gmail.com
SMTP_PORT=587
SMTP_SECURE=false
SMTP_USER=your-email@gmail.com
SMTP_PASS=your-app-password
# 发件人信息
EMAIL_FROM=your-email@gmail.com
EMAIL_FROM_NAME=Claude Code Remote 通知系统
# ===== IMAP 接收邮件配置 =====
IMAP_HOST=imap.gmail.com
IMAP_PORT=993
IMAP_SECURE=true
IMAP_USER=your-email@gmail.com
IMAP_PASS=your-app-password
# ===== 邮件路由配置 =====
# 接收通知的邮箱地址
EMAIL_TO=your-notification-email@gmail.com
# 允许发送命令的邮箱地址(安全白名单)
ALLOWED_SENDERS=your-notification-email@gmail.com
# ===== 系统配置 =====
# 会话映射文件路径 (请替换为你的实际路径)
SESSION_MAP_PATH=/Users/your-username/path/to/Claude-Code-Remote/src/data/session-map.json
# 运行模式pty 或 tmux
INJECTION_MODE=pty
# Claude CLI 路径默认使用系统PATH中的claude
CLAUDE_CLI_PATH=claude
# 日志级别debug, info, warn, error
LOG_LEVEL=info
# 是否记录PTY输出调试用
PTY_OUTPUT_LOG=false
# ===== 邮件模板配置 =====
# 邮件检查间隔(秒)
CHECK_INTERVAL=30
# 会话超时时间(小时)
SESSION_TIMEOUT=24