-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.example
More file actions
40 lines (32 loc) · 2.56 KB
/
Copy path.env.example
File metadata and controls
40 lines (32 loc) · 2.56 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
# filepath: .env.example
# CacheGuard environment configuration — copy to .env and customise
# ── Identity ──────────────────────────────────────────────────────────────────
PROJECT_NAME=CacheGuard Engine
VERSION=2.1.0
ENVIRONMENT=development # development | staging | production
# ── Networking ────────────────────────────────────────────────────────────────
HOST=0.0.0.0
PORT=8000
# Comma-separated allowed origins — NO wildcard in production
CORS_ORIGINS=http://localhost:5173,http://localhost:4173,http://localhost:3000
# ── Security ──────────────────────────────────────────────────────────────────
# Leave empty to disable API key authentication
API_KEY=
# ── Model ─────────────────────────────────────────────────────────────────────
MODEL_PATH=cacheguard/model/cache_lstm.pth
NORMALIZER_PATH=cacheguard/model/normalizer.pkl
INPUT_SIZE=1
HIDDEN_SIZE=128
NUM_LAYERS=2
DROPOUT=0.3
SEQUENCE_LENGTH=50
# ── Detection ─────────────────────────────────────────────────────────────────
# Probability (0.0–1.0) above which an event is flagged CRITICAL_ALERT
ATTACK_THRESHOLD=0.50
# ── History ───────────────────────────────────────────────────────────────────
HISTORY_SIZE=200
# ── Rate limiting ─────────────────────────────────────────────────────────────
WS_RATE_LIMIT=100 # Max WebSocket messages per second per IP
# ── Logging ───────────────────────────────────────────────────────────────────
LOG_LEVEL=INFO
LOG_JSON=false # Set to true for structured JSON logs in production