返回 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 codewhale-hq/CodeWhale.
9 GITHUB_REPO=codewhale-hq/CodeWhale
10
11 # Optional — required to manually invoke /api/cron
12 # (cloudflare cron triggers don't need this; they set cf-cron). When set it must
13 # be 32 to 512 characters with at least 8 distinct, and a shorter value repeated
14 # is refused; otherwise the trigger stays disabled.
15 # Generate one with: openssl rand -base64 33
16 CRON_SECRET=
17
18 # Optional — defaults to deepseek-flash.
19 DEEPSEEK_MODEL=deepseek-flash
20 DEEPSEEK_BASE_URL=https://api.deepseek.com
21
22 # Admin panel auth. Set to a random secret of 32 to 512 characters with at
23 # least 8 distinct characters, and a shorter value repeated is refused (anything
24 # else leaves admin sign-in disabled); enter it in the /admin login form.
25 # Changing it signs out open admin sessions.
26 # Generate one with: openssl rand -base64 33
27 MAINTAINER_TOKEN=
28
29 # GitHub PAT for posting comments via /admin. Needs issues:write scope.
30 MAINTAINER_GITHUB_PAT=
31
32 # Set to 1 once the Gitee mirror at gitee.com/Hmbown/...
33 # exists. Until then leave blank to hide Gitee links.
34 NEXT_PUBLIC_GITEE_ENABLED=
35
36 # Optional BYOK for website/docs machine translation via the General
37 # Translation CLI (`npm run i18n:gt -- translate`). Never commit values.
38 # Check/export/import are local and do not need these. Runtime does not
39 # call GT. Fail-closed without both. Never wrap model completions.
40 # GT_API_KEY=
41 # GT_PROJECT_ID=
42
43 # Cloud facts (facts/v1) delivery via /api/facts/v1/<channel>. Read-only:
44 # the publishable (anon) key is the ONLY Supabase key the website may hold.
45 # Project: CodeWhale Web. Unset → the route answers 503 facts-unavailable.
46 SUPABASE_URL=https://mungbvkvpkxbkjzspehg.supabase.co
47 SUPABASE_PUBLISHABLE_KEY=
48
49 # Cloud facts authoring (founder machine only; never CI, never the host):
50 # CODEWHALE_FACTS_SIGNING_KEY_FILE=/path/outside/any/repo/cwf-<id>.key
51 # SUPABASE_SERVICE_ROLE_KEY= # publish/revoke via scripts/facts-publish.mjs
52
52 lines Plain Text