Files
NodeSeek-Signin/.env.example
hkfires 9df3e7c8ec feat(docker): 增加 Docker 支持以实现自动化定时任务
新增通过 `docker-compose` 进行部署和运行的方式,实现了本地自动化定时签到。

主要更新包括:
- 引入 `scheduler.py` 脚本,根据 `RUN_AT` 环境变量管理定时任务,支持固定时间或随机时间范围。
- 在 Docker 环境中,Cookie 将被持久化到 `./cookie` 卷中,以在容器重启后保持登录状态。
- 新增了本地开发和测试流程,通过 `test_run.py` 和 `.env` 文件简化了调试。
- 更新了 `README.md` 文档,包含详细的 Docker 部署和本地开发指南。
2025-08-03 11:05:52 +08:00

35 lines
870 B
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.

# 账户配置
USER1=your_username1
PASS1=your_password1
# USER2=your_username2
# PASS2=your_password2
# --- 验证码配置 (二选一) ---
# 方案A: 自建 CloudFreed 服务
SOLVER_TYPE=turnstile
API_BASE_URL=http://your_cloudflare_service_ip:3000
CLIENTT_KEY=your_cloudfreed_client_key
# 方案B: YesCaptcha 服务
# SOLVER_TYPE=yescaptcha
# # YesCaptcha 国内节点: https://cn.yescaptcha.com, 国际节点: https://api.yescaptcha.com
# API_BASE_URL=https://api.yescaptcha.com
# CLIENTT_KEY=your_yescaptcha_client_key
# 功能配置
# NS_RANDOM=true
# 每日运行时间配置
# 支持固定时间 (例如 '09:00') 或随机时间范围 (例如 '08:00-10:59')
# 如果不设置,默认为 '08:00-10:59'
# RUN_AT=09:00
RUN_AT=08:00-10:59
# 通知配置
# TG_BOT_TOKEN=
# TG_USER_ID=
# TG_THREAD_ID=
# 模拟Docker环境用于本地测试
# IN_DOCKER=true