-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Expand file tree
/
Copy path.env.example
More file actions
29 lines (24 loc) · 1.06 KB
/
.env.example
File metadata and controls
29 lines (24 loc) · 1.06 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
POSTGRES_URL="postgresql://postgres:password@localhost:5432/gitdiagram"
# Set to true to route frontend generation calls to an external backend (Railway/local FastAPI).
# Variable name kept for backward compatibility.
NEXT_PUBLIC_USE_LEGACY_BACKEND=false
# External backend base URL (no trailing slash), e.g. https://gitdiagram-api-production-xxxx.up.railway.app
NEXT_PUBLIC_API_DEV_URL=
OPENAI_API_KEY=
# OPTIONAL: model used for all three generation stages
OPENAI_MODEL=gpt-5.2
# OPTIONAL: providing your own GitHub PAT increases rate limits from 60/hr to 5000/hr to the GitHub API
GITHUB_PAT=
# OPTIONAL: GitHub App auth (used when GITHUB_PAT is not provided)
GITHUB_CLIENT_ID=
GITHUB_PRIVATE_KEY=
GITHUB_INSTALLATION_ID=
# OPTIONAL: api-analytics.com key for backend request analytics
API_ANALYTICS_KEY=
# OPTIONAL: comma-separated CORS origins for backend (local + deployed frontend URLs)
CORS_ORIGINS="http://localhost:3000,https://gitdiagram.com,https://www.gitdiagram.com"
# OPTIONAL runtime flags (backend)
ENVIRONMENT=development
HOST=0.0.0.0
PORT=8000
WEB_CONCURRENCY=2