Repository navigation
Expand file tree
/
Copy path.env.example
More file actions
38 lines (33 loc) · 1.6 KB
/
Copy path.env.example
File metadata and controls
38 lines (33 loc) · 1.6 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
# ============================================================
# SkyCargo OSS · environment template
# Copy to .env and adjust: cp .env.example .env
# .env is gitignored — NEVER commit real secrets.
# ============================================================
# --- Database ---------------------------------------------------
# SQLite (default · zero-setup). Prisma resolves RELATIVE SQLite URLs
# against the prisma/ folder (schema location), so ../db/ points at the
# project-root db/ directory on any machine. Absolute paths also work.
# In Docker the compose file sets file:/app/db/custom.db automatically.
DATABASE_URL="file:../db/custom.db"
# --- Auth -------------------------------------------------------
# REQUIRED in production (>= 32 chars). Signs HMAC session tokens
# for POST /api/auth/login. A short/missing secret refuses to sign
# (fail-closed) — the demo header flow (DEMO_AUTH) is dev-only.
# Generate: openssl rand -base64 48
AUTH_SECRET=""
# Demo mode: allows the x-user-role demo headers used by the UI
# role-switcher. MUST be unset/0 in real deployments (set it only
# when you want the RBAC demo experience without a login page).
# The real login lives at /login — first-run logins admin/admin,
# gha/gha, agent/agent (see README §Logins), all scrypt-hashed.
DEMO_AUTH=0
# --- Runtime (optional) -----------------------------------------
PORT=3000
# Echo every SQL statement with parameters into the log (debug only)
DEBUG_QUERIES=0
# --- Email outbox (optional · notifications module) --------------
# SMTP_HOST=""
# SMTP_PORT=587
# SMTP_USER=""
# SMTP_PASS=""
# SMTP_FROM="cargo@example.com"