feat: 实现基于 Cloudflare Worker 的 WPS 表单数据转发至 GoToSocial 功能
This commit is contained in:
18
wrangler.toml
Normal file
18
wrangler.toml
Normal file
@@ -0,0 +1,18 @@
|
||||
name = "wps-gotosocial-bot"
|
||||
main = "src/worker.js"
|
||||
compatibility_date = "2024-01-01"
|
||||
|
||||
[vars]
|
||||
# GOTOSOCIAL_URL: GoToSocial 实例的 API 地址
|
||||
# GOTOSOCIAL_TOKEN: GoToSocial 的 API Bearer Token
|
||||
# GOTOSOCIAL_VISIBILITY: 可选, toot 的可见性, 默认 'private' (private, direct, unlisted, public)
|
||||
#
|
||||
# 部署前, 请务必在 Cloudflare Dashboard 中设置好 GOTOSOCIAL_URL 和 GOTOSOCIAL_TOKEN 的 secrets
|
||||
# 例如: npx wrangler secret put GOTOSOCIAL_TOKEN
|
||||
# GOTOSOCIAL_URL = "https://your-gotosocial-instance.com/api/v1/statuses"
|
||||
GOTOSOCIAL_VISIBILITY = "private"
|
||||
|
||||
[observability]
|
||||
[observability.logs]
|
||||
enabled = true
|
||||
invocation_logs = true
|
||||
Reference in New Issue
Block a user