Repository navigation
Expand file tree
/
Copy path.env.example
More file actions
58 lines (46 loc) · 2.73 KB
/
Copy path.env.example
File metadata and controls
58 lines (46 loc) · 2.73 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
# Copy this file to .env in the repo root, then:
# cd infra && docker compose --env-file ../.env up --build
#
# Every value marked REQUIRED_change_me must be replaced before deploying.
# Generate strong random secrets with: openssl rand -hex 32
# ─── Database ──────────────────────────────────────────────────────────────
POSTGRES_USER=liveboard
POSTGRES_PASSWORD=REQUIRED_change_me
POSTGRES_DB=liveboard
# ─── Redis ─────────────────────────────────────────────────────────────────
REDIS_PASSWORD=REQUIRED_change_me
# ─── Backend (apps/api) ────────────────────────────────────────────────────
# Ingest master key. Also doubles as the internal BFF<->API token unless
# INTERNAL_SERVICE_TOKEN is set below. Must be >=32 random chars in production
# (core/config.py rejects weak/default values outright).
API_SECRET_KEY=REQUIRED_change_me
# Optional: a separate token for internal BFF<->API calls, instead of reusing
# API_SECRET_KEY for that purpose. Recommended in production. If unset, the
# API falls back to accepting API_SECRET_KEY for internal calls (see
# apps/api/api/deps.py::_valid_internal_token).
INTERNAL_SERVICE_TOKEN=
# Optional: Cerebras API key for AI-written incident summaries. Leave empty
# to disable AI summaries — anomaly detection still runs, just without the
# generated write-up.
CEREBRAS_API_KEY=
ENVIRONMENT=production
# ─── Frontend (Next.js) ────────────────────────────────────────────────────
# Public URL of the API, reachable from the browser.
NEXT_PUBLIC_API_URL=https://api.yourdomain.com
# Public URL this frontend is deployed at.
NEXTAUTH_URL=https://yourdomain.com
# Session encryption secret for NextAuth/Auth.js.
AUTH_SECRET=REQUIRED_change_me
# Google OAuth. Required for real sign-in in production — without it, and
# with DISABLE_DEV_LOGIN=true (below), nobody can sign in at all.
GOOGLE_CLIENT_ID=
GOOGLE_CLIENT_SECRET=
# Restrict who's allowed to sign up. Leave both empty to allow anyone with a
# Google account (open sign-up) — fine for a personal instance, probably not
# for a team/company one.
ALLOWED_EMAILS=
ALLOWED_EMAIL_DOMAIN=
# Hard kill-switch for the dev-login credentials bypass (accepts any email
# with zero verification), independent of NODE_ENV. Always set this to true
# outside of local development.
DISABLE_DEV_LOGIN=true