返回 CodeWhale
.env.example
根目录 / web / .env.example
1 # Required for the /api/cron routes (DeepSeek summarization + community agent).
2 DEEPSEEK_API_KEY=sk-your-deepseek-key
3
4 # Optional — raises GitHub API rate limit from 60 to 5000 req/h.
5 # Use a fine-grained PAT scoped to public repos only.
6 GITHUB_TOKEN=
7
8 # Override which repo to mirror. Defaults to Hmbown/CodeWhale.
9 GITHUB_REPO=Hmbown/CodeWhale
10
11 # Optional — required to manually invoke /api/cron
12 # (cloudflare cron triggers don't need this; they set cf-cron).
13 CRON_SECRET=
14
15 # Optional — defaults to deepseek-v4-flash.
16 DEEPSEEK_MODEL=deepseek-v4-flash
17 DEEPSEEK_BASE_URL=https://api.deepseek.com
18
19 # Admin panel auth. Set to a random secret; access /admin?token=<this-value>.
20 MAINTAINER_TOKEN=
21
22 # GitHub PAT for posting comments via /admin. Needs issues:write scope.
23 MAINTAINER_GITHUB_PAT=
24
25 # Set to 1 once the Gitee mirror at gitee.com/Hmbown/...
26 # exists. Until then leave blank to hide Gitee links.
27 NEXT_PUBLIC_GITEE_ENABLED=
28
29 # Optional BYOK for website/docs machine translation via the General
30 # Translation CLI (`npm run i18n:gt -- translate`). Never commit values.
31 # Check/export/import are local and do not need these. Runtime does not
32 # call GT. Fail-closed without both. Never wrap model completions.
33 # GT_API_KEY=
34 # GT_PROJECT_ID=
35
36 # Cloud facts (facts/v1) delivery via /api/facts/v1/<channel>. Read-only:
37 # the publishable (anon) key is the ONLY Supabase key the website may hold.
38 # Project: CodeWhale Web. Unset → the route answers 503 facts-unavailable.
39 SUPABASE_URL=https://mungbvkvpkxbkjzspehg.supabase.co
40 SUPABASE_PUBLISHABLE_KEY=
41
42 # Cloud facts authoring (founder machine only; never CI, never the host):
43 # CODEWHALE_FACTS_SIGNING_KEY_FILE=/path/outside/any/repo/cwf-<id>.key
44 # SUPABASE_SERVICE_ROLE_KEY= # publish/revoke via scripts/facts-publish.mjs
45
45 lines Plain Text