-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy path.env.defaults.example
More file actions
98 lines (85 loc) · 3.99 KB
/
Copy path.env.defaults.example
File metadata and controls
98 lines (85 loc) · 3.99 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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
# Copy to .env and adjust. Placeholders only — never commit real secrets.
# Schema: apps/api/src/lib/env.ts (t3 createEnv)
# -----------------------------------------------------------------------------
# Core
# -----------------------------------------------------------------------------
PORT=3001
HOST=0.0.0.0
# NODE_ENV=development
# CI=false
# -----------------------------------------------------------------------------
# Database (PGLITE=true uses in-memory DB; else DATABASE_URL required)
# -----------------------------------------------------------------------------
PGLITE=false
DATABASE_URL=postgresql://postgres:postgres@127.0.0.1:54322/postgres
# -----------------------------------------------------------------------------
# Ops / limits / logging
# -----------------------------------------------------------------------------
# RATE_LIMIT_MAX=100
# RATE_LIMIT_TIME_WINDOW=60000
# TRUST_PROXY=true
# SECURITY_HEADERS_ENABLED=true
# BODY_LIMIT=1048576
# REQUEST_TIMEOUT=30000
# LOG_LEVEL=info
# -----------------------------------------------------------------------------
# Sentry (optional)
# -----------------------------------------------------------------------------
# SENTRY_DSN=
# SENTRY_ENVIRONMENT=
# -----------------------------------------------------------------------------
# AI (at least one provider path for chat features)
# -----------------------------------------------------------------------------
ANTHROPIC_API_KEY=sk-ant-xxx
# OPEN_ROUTER_API_KEY=sk-or-v1-xxxxxxxxxxxxxxxxxx
# OLLAMA_BASE_URL=http://localhost:11434
# AI_PROVIDER=anthropic
# AI_DEFAULT_MODEL=
# AI_UPSTREAM_TIMEOUT_MS=120000
# BRAVE_SEARCH_API_KEY=
# -----------------------------------------------------------------------------
# JWT / encryption (JWT_SECRET must match Next.js web app)
# -----------------------------------------------------------------------------
JWT_SECRET=default-jwt-secret-min-32-chars-for-dev
# 64 hex chars dev default; must not be all-zero in production
ENCRYPTION_KEY=0000000000000000000000000000000000000000000000000000000000000000
# ACCESS_JWT_EXPIRES_IN_SECONDS=900
# REFRESH_JWT_EXPIRES_IN_SECONDS=604800
# JWT_ISSUER=api.yourapp.com
# JWT_AUDIENCE=api.yourapp.com
# -----------------------------------------------------------------------------
# Email / app identity
# -----------------------------------------------------------------------------
# RESEND_API_KEY=re_placeholder
# EMAIL_FROM=noreply@localhost
# EMAIL_FROM_NAME=App
# APP_NAME=Your App
# -----------------------------------------------------------------------------
# Testing / features
# -----------------------------------------------------------------------------
# ALLOW_TEST=false
# -----------------------------------------------------------------------------
# OAuth — optional (routes return 503 when unset)
# -----------------------------------------------------------------------------
# GITHUB_CLIENT_ID=
# GITHUB_CLIENT_SECRET=
# OAUTH_GITHUB_CALLBACK_URL=http://localhost:3000/auth/callback/oauth/github
# OAUTH_GITHUB_CALLBACK_URLS=http://localhost:3000/auth/callback/oauth/github,yourapp://auth/callback
# GOOGLE_CLIENT_ID=
# GOOGLE_CLIENT_SECRET=
# OAUTH_GOOGLE_CALLBACK_URL=http://localhost:3000/auth/callback/oauth/google
# OAUTH_GOOGLE_CALLBACK_URLS=http://localhost:3000/auth/callback/oauth/google,yourapp://auth/callback
# FACEBOOK_CLIENT_ID=
# FACEBOOK_CLIENT_SECRET=
# OAUTH_FACEBOOK_CALLBACK_URL=http://localhost:3000/auth/callback/oauth/facebook
# OAUTH_FACEBOOK_CALLBACK_URLS=http://localhost:3000/auth/callback/oauth/facebook,yourapp://auth/callback
# TWITTER_CLIENT_ID=
# TWITTER_CLIENT_SECRET=
# OAUTH_TWITTER_CALLBACK_URL=http://localhost:3000/auth/callback/oauth/twitter
# OAUTH_TWITTER_CALLBACK_URLS=http://localhost:3000/auth/callback/oauth/twitter,yourapp://auth/callback
# -----------------------------------------------------------------------------
# CORS / app URLs / auth metadata
# -----------------------------------------------------------------------------
# ALLOWED_ORIGINS=*
# TOTP_ISSUER=
# WEBAUTHN_RP_NAME=