mirror of
https://github.com/Elysola/WebHooker.git
synced 2026-11-20 17:13:49 +00:00
44 lines
1.8 KiB
Bash
44 lines
1.8 KiB
Bash
# GitHub
|
|
GITHUB_WEBHOOK_SECRET=your-webhook-secret
|
|
GITHUB_APP_ID=your-app-id
|
|
GITHUB_PRIVATE_KEY="-----BEGIN PRIVATE KEY-----\n...\n-----END PRIVATE KEY-----"
|
|
GITHUB_CLIENT_ID=your-client-id
|
|
GITHUB_CLIENT_SECRET=your-client-secret
|
|
|
|
# Gitea (optional — to receive Gitea webhooks)
|
|
GITEA_WEBHOOK_SECRET=your-gitea-webhook-secret
|
|
|
|
# Discord
|
|
DISCORD_TOKEN=your-bot-token
|
|
DISCORD_PUBLIC_KEY=your-public-key
|
|
DISCORD_APPLICATION_ID=your-application-id
|
|
|
|
# Telegram
|
|
TELEGRAM_TOKEN=your-bot-token
|
|
TELEGRAM_WEBHOOK_SECRET=your-webhook-secret # optional: derived from TELEGRAM_TOKEN when unset
|
|
# TELEGRAM_RICH_HEADER_HOST=https://your-domain
|
|
|
|
# Feishu (Lark / 飞书)
|
|
FEISHU_APP_ID=your-app-id
|
|
FEISHU_APP_SECRET=your-app-secret
|
|
# Inbound commands/buttons need at least one of these (Events & Callbacks → Encryption Strategy):
|
|
FEISHU_ENCRYPT_KEY=your-encrypt-key
|
|
FEISHU_VERIFICATION_TOKEN=your-verification-token
|
|
|
|
# Admin
|
|
# Prefer numeric GitHub user ids: a login is bound to the first account that signs in with it
|
|
ADMIN_USER_IDS=your-github-id
|
|
# DEBUG_MODE=true # local development only: bypasses all admin authentication
|
|
# ALLOW_SELF_SIGNUP=1 # non-admin GitHub users get a personal group on first login (default off)
|
|
# AUDIT_RETENTION_DAYS=90 # audit log retention for the scheduled cleanup (default 90)
|
|
# DELIVERY_STATE_STORE=kv # keep webhook delivery state in KV instead of D1: faster at the edge,
|
|
# # but the free plan allows only ~1,000 KV writes/day (default d1)
|
|
|
|
# Server / public URL (OAuth callbacks + Telegram webhook sync)
|
|
BASE_URL=http://localhost:8787
|
|
|
|
# Optional (public runtime config, consumed by the Nuxt pages)
|
|
# NUXT_PUBLIC_DOCS_URL=https://your-docs-site
|
|
# NUXT_PUBLIC_REPO_URL=https://github.com/Elysola/WebHooker
|
|
# NUXT_PUBLIC_LEGAL_CONTACT=contact@example.com
|