-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.example
More file actions
59 lines (47 loc) · 1.77 KB
/
Copy path.env.example
File metadata and controls
59 lines (47 loc) · 1.77 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
# ============================================================================
# SufyanWithCode AI — environment template
# Copy to `.env` and fill in real values. NEVER commit the real .env.
# Generate secrets with: openssl rand -hex 32
# ============================================================================
# --- App ---
APP_NAME=SufyanWithCode AI
ENV=dev # dev | staging | production
DEBUG=false
API_V1_PREFIX=/api/v1
# --- Security ---
JWT_SECRET=REPLACE_WITH_openssl_rand_hex_32
JWT_ALGORITHM=HS256
ACCESS_TOKEN_EXPIRE_MINUTES=30
REFRESH_TOKEN_EXPIRE_DAYS=30
CORS_ORIGINS=http://localhost,https://your-domain.com
# --- Google Sign-In (optional) ---
GOOGLE_CLIENT_ID=
# --- Analytics ---
ANALYTICS_SALT=REPLACE_WITH_openssl_rand_hex_16
ANALYTICS_STORE_PREVIEW=true
# --- Database (compose builds DATABASE_URL from these) ---
POSTGRES_USER=swc
POSTGRES_PASSWORD=REPLACE_WITH_A_STRONG_PASSWORD
POSTGRES_DB=sufyanwithcode
# For running the backend OUTSIDE compose, set this directly instead:
DATABASE_URL=postgresql+asyncpg://swc:REPLACE@localhost:5432/sufyanwithcode
# --- Redis ---
REDIS_URL=redis://localhost:6379/0
# --- Rate limiting ---
RATE_LIMIT_PER_MINUTE=60
CHAT_RATE_LIMIT_PER_MINUTE=20
# --- LLM provider ---
LLM_PROVIDER=anthropic # anthropic | mock (mock needs no key)
ANTHROPIC_API_KEY=
# Confirm the current model string at https://docs.claude.com/en/docs/about-claude/models
LLM_MODEL=claude-sonnet-4-5
LLM_MAX_TOKENS=2048
# --- Uploads ---
MAX_UPLOAD_MB=20
# --- Telemetry ---
OTEL_EXPORTER_OTLP_ENDPOINT= # e.g. http://otel-collector:4317
LOG_LEVEL=INFO
# --- Migrations on backend boot (leave false for multi-replica) ---
RUN_MIGRATIONS=false
# --- Grafana admin (monitoring stack) ---
GRAFANA_ADMIN_PASSWORD=REPLACE_WITH_A_STRONG_PASSWORD