-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy path.env.example
More file actions
79 lines (59 loc) · 2.36 KB
/
.env.example
File metadata and controls
79 lines (59 loc) · 2.36 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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
# TopGun Configuration
# Copy to .env and modify as needed
# Run: cp .env.example .env
# =============================================================================
# STORAGE
# =============================================================================
# Storage backend: sqlite, postgres, memory
# - sqlite: Zero-dependency local storage (recommended for development)
# - postgres: Full PostgreSQL backend (recommended for production)
# - memory: In-memory storage (data lost on restart, for testing)
STORAGE_MODE=sqlite
# SQLite (default for development)
# Path to SQLite database file. Use ':memory:' for in-memory.
DB_PATH=./topgun.db
# PostgreSQL (recommended for production)
# Uncomment and configure for PostgreSQL:
# DB_HOST=localhost
# DB_PORT=5432
# DB_USER=topgun
# DB_PASSWORD=topgun_dev
# DB_NAME=topgun
# Or use connection string:
# DATABASE_URL=postgresql://topgun:topgun_dev@localhost:5432/topgun
# =============================================================================
# SERVER
# =============================================================================
# Main server port (WebSocket + HTTP)
SERVER_PORT=8080
# Metrics endpoint port (Prometheus format)
METRICS_PORT=9091
# Node ID (auto-generated UUID if not set)
# NODE_ID=node-1
# =============================================================================
# CLUSTER (optional)
# =============================================================================
# Enable clustering for multi-node deployment
# CLUSTER_ENABLED=true
# Comma-separated list of seed nodes for cluster discovery
# CLUSTER_SEEDS=ws://node-2:8081,ws://node-3:8082
# Port for cluster communication (node-to-node)
# CLUSTER_PORT=8081
# =============================================================================
# AUTH (optional)
# =============================================================================
# JWT secret for authentication
# JWT_SECRET=your-secret-key-min-32-chars-long
# JWT token expiration
# JWT_EXPIRY=24h
# =============================================================================
# DEBUG (development only)
# =============================================================================
# Enable CRDT operation logging
# CRDT_DEBUG=true
# Enable search score breakdown
# SEARCH_DEBUG=true
# Enable SQLite verbose logging
# SQLITE_VERBOSE=true
# Log level: fatal, error, warn, info, debug, trace
# LOG_LEVEL=info