Repository navigation
Expand file tree
/
Copy path.env.example
More file actions
55 lines (47 loc) · 2.16 KB
/
Copy path.env.example
File metadata and controls
55 lines (47 loc) · 2.16 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
### CodeLedger environment variables (example)
# Copy this to `.env` and fill values. Do NOT commit `.env`.
# Cloudflare
# Your Cloudflare account ID (required by Wrangler/CI)
CF_ACCOUNT_ID=
# Cloudflare API token with permissions to manage Workers, KV, and Routes
CF_API_TOKEN=
# (Optional) Cloudflare Zone ID for the custom domain route
CF_ZONE_ID=
# Workers KV
# KV namespace ID that stores the canonical map
CANONICAL_KV_ID=
# Token used to authorize canonical map uploads to the Worker admin endpoint
CANONICAL_UPLOAD_TOKEN=
# GitHub App / OAuth
# GitHub App numeric ID (e.g. 3496983)
GITHUB_APP_ID=
# GitHub App private key (PEM format) — multiline value
GITHUB_APP_PRIVATE_KEY="""\n-----BEGIN PRIVATE KEY-----\n...\n-----END PRIVATE KEY-----\n"""
# GitHub App client ID and client secret (OAuth)
GITHUB_APP_CLIENT_ID=
GITHUB_APP_CLIENT_SECRET=
# Webhook secret used to verify incoming GitHub webhooks
GITHUB_APP_WEBHOOK_SECRET=
# NOTE: GitHub Actions disallows repository secret names beginning with `GITHUB_`.
# When adding these values as GitHub repository secrets (for CI), use the
# `CODELEDGER_GH_*` names instead. Example mapping:
# CODELEDGER_GH_APP_ID -> (value of GITHUB_APP_ID)
# CODELEDGER_GH_APP_PRIVATE_KEY -> (contents of GITHUB_APP_PRIVATE_KEY file)
# CODELEDGER_GH_APP_CLIENT_ID -> (value of GITHUB_APP_CLIENT_ID)
# CODELEDGER_GH_APP_CLIENT_SECRET -> (value of GITHUB_APP_CLIENT_SECRET)
# CODELEDGER_GH_APP_WEBHOOK_SECRET -> (value of GITHUB_APP_WEBHOOK_SECRET)
# Application secrets
# Secret used to sign session cookies / JWTs (choose a long random string)
SESSION_SECRET=
# Optional: Sentry DSN, analytics keys, etc.
SENTRY_DSN=
# Example: set provided webhook secret here (copy to your local `.env`)
# GITHUB_APP_WEBHOOK_SECRET=
# GEMINI_API_KEY: Required for Gemini AI API calls.
# AI Studio automatically injects this at runtime from user secrets.
# Users configure this via the Secrets panel in the AI Studio UI.
GEMINI_API_KEY="MY_GEMINI_API_KEY"
# APP_URL: The URL where this applet is hosted.
# AI Studio automatically injects this at runtime with the Cloud Run service URL.
# Used for self-referential links, OAuth callbacks, and API endpoints.
APP_URL="MY_APP_URL"