-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy path.env.example
More file actions
65 lines (46 loc) · 1.79 KB
/
Copy path.env.example
File metadata and controls
65 lines (46 loc) · 1.79 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
60
61
62
63
64
65
# PostgreSQL connection string
DATABASE_URL=postgresql://postgres:password@localhost:5432/statrix
# Secret key for JWT token signing
# Generate: python -c "import secrets; print(secrets.token_urlsafe(32))"
JWT_SECRET_KEY=your-jwt-secret-key-here
JWT_ALGORITHM=HS256
JWT_EXPIRE_HOURS=168
# Single admin user account (created automatically on first startup)
OWNER_PASSWORD=your-secure-password-here
OWNER_NAME=Admin
# Allowed origins for API access (JSON array format)
CORS_ORIGINS=["http://localhost:8000","http://127.0.0.1:8000"]
# SMTP settings for downtime/recovery email alerts
# Gmail example uses App Password (requires 2-Step Verification)
SMTP_SERVER=smtp.gmail.com
SMTP_PORT=587
SMTP_PASS=your-app-password
SMTP_FROM=Statrix Alerts <[email protected]>
APP_NAME=Statrix
APP_URL=http://localhost:8000
COMPANY_NAME=Statrix
# Public status page title (shown in browser tab and page heading)
STATUS_PAGE_TITLE=Statrix Status
# Custom logo URL for the public status page (optional, must be HTTPS)
# STATUS_LOGO=https://your-domain.com/path/to/logo.png
# Cache backend: "redis" or "inmemory"
CACHE_BACKEND=redis
REDIS_URL=rediss://default:password@your-redis-host:6379
CACHE_FAIL_FAST=true
CACHE_WARMUP_FULL=true
CACHE_KEY_PREFIX=statrix:v1
CACHE_WARMUP_BATCH_SIZE=500
MONITOR_LEADER_LOCK_ENABLED=true
MONITOR_LEADER_LOCK_TTL_SECONDS=90
PUBLIC_STATUS_CACHE_TTL_SECONDS=10
# Derived status summary cache (fast public status path)
STATUS_SUMMARY_ENABLED=true
STATUS_SUMMARY_WARMUP_DELAY_SECONDS=90
STATUS_SUMMARY_COLD_WAIT_SECONDS=5
STATUS_SUMMARY_FLUSH_INTERVAL_SECONDS=10
STATUS_SUMMARY_MAX_TIMELINE_SEGMENTS=32
STATUS_SUMMARY_PARTIAL_DOWNTIME_MINUTES=15.0
STATUS_SUMMARY_REDIS_PREFIX=status:summary:v1