Skip to content

Commit 6e52b65

Browse files
authored
docs: add root .env.example with DATABASE_URL and NEXT_PUBLIC_API_URL
1 parent f2de5b6 commit 6e52b65

1 file changed

Lines changed: 36 additions & 0 deletions

File tree

.env.example

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
# ============================================================
2+
# AI-Powered Security Monitoring & Threat Detection Platform
3+
# Root .env.example - copy to .env and fill in your values
4+
# ============================================================
5+
6+
# --------------------------
7+
# Backend (FastAPI)
8+
# --------------------------
9+
10+
# SQLite (default for local dev - no changes needed)
11+
DATABASE_URL=sqlite:///./security_logs.db
12+
13+
# PostgreSQL (for production - uncomment and set values)
14+
# DATABASE_URL=postgresql://user:password@localhost:5432/security_db
15+
16+
# --------------------------
17+
# Frontend (Next.js)
18+
# --------------------------
19+
20+
# URL of the FastAPI backend that the Next.js dashboard connects to
21+
# For local dev:
22+
NEXT_PUBLIC_API_URL=http://localhost:8000
23+
24+
# For Docker Compose:
25+
# NEXT_PUBLIC_API_URL=http://backend:8000
26+
27+
# For production:
28+
# NEXT_PUBLIC_API_URL=https://your-api-domain.com
29+
30+
# --------------------------
31+
# Docker Compose (optional)
32+
# --------------------------
33+
34+
# Override ports if needed
35+
# BACKEND_PORT=8000
36+
# FRONTEND_PORT=3000

0 commit comments

Comments
 (0)