Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 14 additions & 3 deletions .env.example
Original file line number Diff line number Diff line change
@@ -1,7 +1,13 @@
# NewAPI 账号配置示例
# 复制此文件为 .env 并填入实际值(仅用于本地测试)
# NewAPI Runner 环境变量示例
# 账号统一在 Worker 控制台管理。

# ========== 云端配置(推荐)==========
# Worker 地址
CHECKIN_WORKER_URL=https://newapi-checkin.your-subdomain.workers.dev

# 与 Worker 环境变量 RUNNER_TOKEN 保持一致
CHECKIN_RUNNER_TOKEN=replace-with-a-long-random-token

# ========== 兼容配置(可选)==========
# 优先级高于 NEWAPI_ACCOUNTS,配置文件存放在云盘/NAS,改配置无需推代码
# CONFIG_URL=https://dav.jianguoyun.com/dav/your@email.com/newapi-config.json
# CONFIG_AUTH=your@email.com:your_app_password
Expand Down Expand Up @@ -39,6 +45,11 @@ NEWAPI_ACCOUNTS=https://your-domain.com#your_session_cookie
# 钉钉机器人签名密钥(可选,如果开启了加签安全设置)
# DINGTALK_SECRET=SECxxxxx

# ========== Cloudflare Worker 看板配置 ==========
# Runner 从 Worker 获取加密账号配置并上报脱敏结果
# CHECKIN_WORKER_URL=https://your-worker.workers.dev
# CHECKIN_RUNNER_TOKEN=由 Worker 管理员设置的 Runner Token

# ========== Cloudflare 绕过说明 ==========
# 本项目支持自动绕过 Cloudflare 防护:
# - 默认使用 requests 直连(快速模式)
Expand Down
5 changes: 2 additions & 3 deletions .github/workflows/checkin.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,8 @@ jobs:

- name: 执行签到
env:
CONFIG_URL: ${{ secrets.CONFIG_URL }}
CONFIG_AUTH: ${{ secrets.CONFIG_AUTH }}
NEWAPI_ACCOUNTS: ${{ secrets.NEWAPI_ACCOUNTS }}
CHECKIN_WORKER_URL: ${{ secrets.CHECKIN_WORKER_URL }}
CHECKIN_RUNNER_TOKEN: ${{ secrets.CHECKIN_RUNNER_TOKEN }}
DINGTALK_WEBHOOK: ${{ secrets.DINGTALK_WEBHOOK }}
DINGTALK_SECRET: ${{ secrets.DINGTALK_SECRET }}
run: python checkin.py
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ Thumbs.db

# 配置文件(包含敏感信息)
.env
worker/.dev.vars
config.json
accounts.json
newapi_accounts.json
Expand Down
1 change: 1 addition & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
MIT License

Copyright (c) 2026 NewAPI-Checkin Contributors
Copyright (c) 2026 zhikanyeye

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
Loading