自动提交token

This commit is contained in:
2026-03-11 23:23:40 +08:00
commit 68a169980d
4 changed files with 785 additions and 0 deletions

16
.env Normal file
View File

@@ -0,0 +1,16 @@
UPLOAD_TOKEN=
# 多个上传接口 URL用 ; 或 , 分隔(不要用 ':' 分隔)
# 例UPLOAD_ENDPOINTS=http://127.0.0.1:8317/v0/management/auth-files;http://127.0.0.1:46344/v0/management/auth-files
UPLOAD_ENDPOINTS=
# 默认 endpoint当未设置 UPLOAD_ENDPOINTS 且未传 --endpoint 时使用)
UPLOAD_ENDPOINT=http://127.0.0.1:8317/v0/management/auth-files
# 默认 SQLite DB 文件名(当未传 --db 时使用)
UPLOAD_DB=upload_state.sqlite3
# JSON 子目录:支持绝对路径或相对 --dir 的路径
# Linux 示例:/usr/local/openai_register/tokens
# Windows 示例C:\Users\<you>\Desktop\tokens\tokens
UPLOAD_JSON_SUBDIR=