-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy path.env.example
More file actions
59 lines (49 loc) · 3.62 KB
/
.env.example
File metadata and controls
59 lines (49 loc) · 3.62 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
# ─────────────────────────────────────────────────────────────────────────────
# AI Organization — Environment Variables (SaaS / Hosted Mode)
# ─────────────────────────────────────────────────────────────────────────────
# Copy this file: cp .env.example .env
# Fill in your values. Never commit the real .env file.
# ── Auth Mode ─────────────────────────────────────────────────────────────────
# false = SaaS mode (Google OAuth + JWT). true = Local mode (no login).
AUTH_DISABLED=false
NEXT_PUBLIC_AUTH_DISABLED=false
# ── LLM API Keys (Platform defaults — used if user has no personal key set) ──
OPENAI_API_KEY=sk-...
ANTHROPIC_API_KEY=sk-ant-...
GOOGLE_API_KEY=AIza...
# ── AWS / Amazon Nova Credentials (Required for Bedrock Models) ──────────────
AWS_ACCESS_KEY_ID=AKIA...
AWS_SECRET_ACCESS_KEY=...
AWS_REGION=us-east-1
# ── Encryption ────────────────────────────────────────────────────────────────
# 64-char hex string (32 bytes). Generate with: openssl rand -hex 32
KEY_ENCRYPTION_KEY=
# ── Google OAuth (SaaS mode only) ─────────────────────────────────────────────
# Create at: https://console.cloud.google.com/apis/credentials
# Authorized redirect URI: https://yourdomain.com/auth/google/callback
GOOGLE_CLIENT_ID=
GOOGLE_CLIENT_SECRET=
GOOGLE_REDIRECT_URL=https://yourdomain.com/auth/google/callback
# ── JWT Signing Keys (SaaS mode only) ─────────────────────────────────────────
# Generate with: openssl genrsa -out private.pem 2048 && openssl rsa -in private.pem -pubout -out public.pem
JWT_PRIVATE_KEY_PATH=./keys/private.pem
JWT_PUBLIC_KEY_PATH=./keys/public.pem
JWT_EXPIRY=168h # 7 days
# ── Database ──────────────────────────────────────────────────────────────────
POSTGRES_USER=aiorg
POSTGRES_PASSWORD=changeme
POSTGRES_DB=aiorg
DATABASE_URL=postgres://aiorg:changeme@localhost:5432/aiorg?sslmode=disable
# ── Infrastructure ─────────────────────────────────────────────────────────────
REDIS_ADDR=localhost:6379
KAFKA_BROKERS=localhost:9092
GRAFANA_PASSWORD=changeme
OPENSEARCH_ADMIN_PASSWORD=changeme
# ── Dashboard (Next.js) ────────────────────────────────────────────────────────
NEXT_PUBLIC_API_URL=https://yourdomain.com
NEXT_PUBLIC_WS_URL=wss://yourdomain.com
NEXT_PUBLIC_AUTH_DISABLED=false
# ── Integrated Billing (Stripe) ───────────────────────────────────────────────
# Create at: https://dashboard.stripe.com/apikeys
STRIPE_API_KEY=sk_test_...
STRIPE_WEBHOOK_SECRET=whsec_...