-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.example
More file actions
120 lines (96 loc) · 3.06 KB
/
.env.example
File metadata and controls
120 lines (96 loc) · 3.06 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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
# Plainview Environment Configuration
# Copy this file to .env and fill in the values for your environment
# ====================
# ENVIRONMENT
# ====================
ENVIRONMENT=development # development | staging | production
# ====================
# API SERVER
# ====================
PORT=4000
HOST=0.0.0.0
# ====================
# DATABASE
# ====================
# PostgreSQL connection string (async driver required)
# Format: postgresql+asyncpg://user:password@host:port/database
POSTGRES_URL=postgresql+asyncpg://plainview:CHANGE_ME@localhost:5432/plainview
# For development, you can use SQLite:
# POSTGRES_URL=sqlite+aiosqlite:///./plainview.db
# ====================
# REDIS (Optional)
# ====================
# Used for caching, pub/sub, and session storage
REDIS_URL=redis://localhost:6379
# ====================
# AUTHENTICATION
# ====================
# Enable API key authentication for write endpoints
API_KEY_ENABLED=false # Set to true in production
# Comma-separated list of valid API keys
# Generate keys with: openssl rand -hex 32
API_KEYS=
# Example (DO NOT USE IN PRODUCTION):
# API_KEYS=dev_key_abc123,prod_key_xyz789
# ====================
# CORS
# ====================
# Comma-separated list of allowed origins
# Leave empty in development to allow localhost
# REQUIRED in production
CORS_ORIGINS=
# Example for production:
# CORS_ORIGINS=https://app.plainview.com,https://dashboard.plainview.com
# ====================
# SUMMIT.OS INTEGRATION (Optional)
# ====================
# Enable integration with Summit.OS autonomy platform
SUMMIT_ENABLED=false
# MQTT broker URL for Summit.OS
# Formats: ws://host:port, wss://host:port, tcp://host:port
SUMMIT_MQTT_URL=ws://localhost:1883
# API key for Summit.OS authentication
SUMMIT_API_KEY=
# Organization ID for multi-tenant deployments
SUMMIT_ORG_ID=
# ====================
# LOGGING & MONITORING
# ====================
# Log level: DEBUG | INFO | WARNING | ERROR | CRITICAL
LOG_LEVEL=INFO
# Enable structured JSON logging
JSON_LOGGING=false # Set to true in production
# Sentry DSN for error tracking (optional)
# SENTRY_DSN=https://abc123@sentry.io/456789
# ====================
# RATE LIMITING
# ====================
# Max requests per minute for valve actuation endpoints
RATE_LIMIT_VALVE_ACTUATION=10
# Max requests per minute for incident mutations
RATE_LIMIT_INCIDENT_MUTATIONS=20
# ====================
# AUTHENTICATION
# ====================
# Auth mode: none | api_key | jwt
AUTH_MODE=none
# JWT settings (required when AUTH_MODE=jwt)
# Generate secret with: openssl rand -hex 32
JWT_SECRET=plainview-dev-secret-change-me
JWT_EXPIRY_MINUTES=30
# ====================
# SIMULATION
# ====================
# Enable simulation engine + simulated agents (default true in dev)
SIMULATION_MODE=true
# ====================
# METRICS
# ====================
# Enable Prometheus metrics endpoint at /metrics
METRICS_ENABLED=true
# ====================
# FRONTEND (Dashboard)
# ====================
# API base URL for the dashboard to connect to
# Leave empty to use same-origin (default for production)
VITE_API_BASE=http://localhost:4000