forked from DreamLab-AI/origin-logseq-AR
-
Notifications
You must be signed in to change notification settings - Fork 21
Expand file tree
/
Copy pathenv.development.template
More file actions
332 lines (287 loc) · 10.9 KB
/
Copy pathenv.development.template
File metadata and controls
332 lines (287 loc) · 10.9 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
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
# ===========================================
# DEVELOPMENT ENVIRONMENT CONFIGURATION
# ===========================================
# This template contains development-specific settings with debugging and hot-reload enabled.
# Copy this file to .env for local development: cp .env.development.template .env
#
# SECURITY NOTE: Never commit .env with real secrets!
# Use .env.local for local overrides (already in .gitignore)
# ===========================================
# ===========================================
# Environment Type
# ===========================================
NODE_ENV=development
BUILD_TARGET=development
DOCKER_ENV=development
# ===========================================
# GPU / CUDA Configuration (Development)
# ===========================================
# Disable GPU features for faster development iteration (uncomment if no GPU available)
# NO_GPU_COMPUTE=true
# NVIDIA_VISIBLE_DEVICES: Controls which GPU(s) are exposed to the Docker container
# - For development, you can use "all" or a specific GPU UUID
# - Find GPU UUID with: nvidia-smi -L
# REQUIRED if using GPU features
NVIDIA_VISIBLE_DEVICES=all
# CUDA_DEVICE: GPU index inside the container (0 for first GPU)
# OPTIONAL - defaults to 0
CUDA_DEVICE=0
# CUDA_ARCH: CUDA compute capability of target GPU
# - 86 for RTX 30-series (Ampere) and RTX A6000
# - 89 for RTX 40-series (Ada)
# REQUIRED if using GPU features
CUDA_ARCH=86
# ===========================================
# GitHub Configuration (Development)
# ===========================================
# REQUIRED: Your GitHub repository details
GITHUB_OWNER=your-github-username
GITHUB_REPO=your-repo-name
# REQUIRED: GitHub Personal Access Token
# Get from: https://github.com/settings/tokens
# Scopes needed: repo (full control)
# SECURITY: Set in .env.local or environment variables
GITHUB_TOKEN=github_pat_XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
# OPTIONAL: Base path for repository operations
GITHUB_BASE_PATH=mainKnowledgeGraph/pages
# ===========================================
# RAGFlow Configuration (Development)
# ===========================================
# REQUIRED: RAGFlow API credentials
# SECURITY: Use development/test credentials only
RAGFLOW_API_KEY=ragflow-dev-XXXXXXXXXXXXXXXXXXXXXXXXXXXXX
RAGFLOW_API_BASE_URL=http://localhost:9380
RAGFLOW_AGENT_ID=your-dev-agent-id
# ===========================================
# Perplexity API Configuration (Development)
# ===========================================
# OPTIONAL: Perplexity AI API settings
# Get API key from: https://www.perplexity.ai/settings/api
PERPLEXITY_API_KEY=pplx-XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
PERPLEXITY_MODEL=llama-3.1-sonar-small-128k-online
PERPLEXITY_MAX_TOKENS=4096
PERPLEXITY_TEMPERATURE=0.7
PERPLEXITY_TOP_P=0.9
PERPLEXITY_PRESENCE_PENALTY=0.0
PERPLEXITY_FREQUENCY_PENALTY=1.0
PERPLEXITY_API_URL=https://api.perplexity.ai/chat/completions
# ===========================================
# OpenAI Configuration (Development)
# ===========================================
# OPTIONAL: OpenAI API settings
# Get API key from: https://platform.openai.com/api-keys
OPENAI_API_KEY=sk-XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
OPENAI_BASE_URL=wss://api.openai.com/v1/realtime
OPENAI_TIMEOUT=30
OPENAI_RATE_LIMIT=100
# ===========================================
# API Client Configuration (Development)
# ===========================================
# Higher concurrency and retries for development testing
MAX_CONCURRENT_REQUESTS=5
MAX_RETRIES=5
RETRY_DELAY=3
API_CLIENT_TIMEOUT=60
# ===========================================
# Data Paths (Development)
# ===========================================
# Local development paths - adjust as needed
DATA_ROOT=./data
MARKDOWN_DIR=./data/markdown
METADATA_DIR=./data/metadata
# ===========================================
# Server Configuration (Development)
# ===========================================
# OPTIONAL: Bind to localhost for security
BIND_ADDRESS=127.0.0.1
# REQUIRED: Enable verbose debugging in development
DEBUG_ENABLED=true
DEBUG_MODE=false
# REQUIRED: Verbose development logging
RUST_LOG=trace,visionflow-server=trace,visionflow-server::config=trace,visionflow-server::models::user_settings=trace,visionflow-server::actors=trace,visionflow-server::handlers=trace,visionflow-server::telemetry=trace,visionflow-server::mcp=trace,visionflow-server::docker_exec=trace,visionflow-server::agent_control=trace
# OPTIONAL: Settings file path
SETTINGS_FILE_PATH=./settings.yaml
# ===========================================
# Cloudflare Tunnel Configuration (Development)
# ===========================================
# OPTIONAL: For exposing local dev to internet
# Get token from: https://dash.cloudflare.com/
CLOUDFLARE_TUNNEL_TOKEN=
TUNNEL_ID=
# ===========================================
# Network Configuration (Development)
# ===========================================
# OPTIONAL: Local development domain
DOMAIN=localhost
# OPTIONAL: Docker registry mirror for faster pulls
DOCKER_REGISTRY_MIRROR=registry-1.docker.io
# ===========================================
# Authentication Configuration (Development)
# ===========================================
# OPTIONAL: Nostr public keys for access control
# Base access control - comma-separated list
APPROVED_PUBKEYS=
# Role-based access control
POWER_USER_PUBKEYS=
SETTINGS_SYNC_ENABLED_PUBKEYS=
# Feature-specific access control
PERPLEXITY_ENABLED_PUBKEYS=
OPENAI_ENABLED_PUBKEYS=
RAGFLOW_ENABLED_PUBKEYS=
# ===========================================
# Claude Flow MCP Configuration (Development)
# ===========================================
# REQUIRED: MCP server connection settings
CLAUDE_FLOW_HOST=localhost
MCP_TCP_PORT=9500
MCP_TRANSPORT=tcp
MCP_RECONNECT_ATTEMPTS=5
MCP_RECONNECT_DELAY=500
# REQUIRED: Management API settings
MANAGEMENT_API_URL=http://localhost:9090
MANAGEMENT_API_KEY=dev-secret-key-change-me
MCP_CONNECTION_TIMEOUT=30000
# ===========================================
# MCP Communication Logging (Development)
# ===========================================
# REQUIRED: Enable all MCP logging for debugging
MCP_LOG_LEVEL=trace
MCP_TCP_DEBUG=true
MCP_CONNECTION_LOGGING=true
MCP_TOOL_CALL_LOGGING=true
MCP_RESPONSE_LOGGING=true
MCP_PROTOCOL_TRACE=true
# ===========================================
# Docker Exec Control Plane Logging (Development)
# ===========================================
# REQUIRED: Enable all Docker exec logging
DOCKER_EXEC_LOGGING=true
DOCKER_EXEC_TRACE=true
DOCKER_COMMAND_DEBUG=true
DOCKER_HIVE_MIND_OPERATIONS=true
DOCKER_PROCESS_LIFECYCLE=true
# ===========================================
# Agent Control System Logging (Development)
# ===========================================
# REQUIRED: Enable all agent control logging
AGENT_CONTROL_LOG_LEVEL=trace
AGENT_SPAWN_LOGGING=true
AGENT_LIFECYCLE_TRACKING=true
AGENT_TELEMETRY_STREAMING=true
AGENT_STATUS_POLLING=true
# ===========================================
# Hybrid Architecture Logging (Development)
# ===========================================
# REQUIRED: Enable all hybrid architecture logging
HYBRID_CONTROL_DEBUG=true
TCP_MCP_DATA_PLANE_LOGGING=true
DOCKER_EXEC_CONTROL_PLANE_LOGGING=true
CROSS_CONTAINER_BRIDGE_LOGGING=true
# ===========================================
# Bots Orchestrator WebSocket (Development)
# ===========================================
# OPTIONAL: Local orchestrator connection
BOTS_ORCHESTRATOR_URL=ws://localhost:3002/ws
# ===========================================
# Security Configuration (Development)
# ===========================================
# JWT Configuration - Use weak secrets for dev (never in production!)
JWT_SECRET=dev-jwt-secret-not-for-production
JWT_EXPIRATION=86400
# Session Configuration
SESSION_SECRET=dev-session-secret-not-for-production
SESSION_TIMEOUT=3600
# WebSocket Security - Disabled for easier development
WS_AUTH_ENABLED=false
WS_AUTH_TOKEN=dev-ws-token
WS_MAX_CONNECTIONS=50
WS_CONNECTION_TIMEOUT=600000
TCP_MAX_CONNECTIONS=25
TCP_CONNECTION_TIMEOUT=600000
# CORS Configuration - Permissive for development
CORS_ALLOWED_ORIGINS=http://localhost:3000,http://localhost:3001,http://127.0.0.1:3000
CORS_ALLOWED_METHODS=GET,POST,PUT,DELETE,OPTIONS,PATCH
CORS_ALLOWED_HEADERS=Content-Type,Authorization,X-Requested-With
# Rate Limiting - Relaxed for development
RATE_LIMIT_WINDOW_MS=60000
RATE_LIMIT_MAX_REQUESTS=1000
# ===========================================
# Input Validation Configuration (Development)
# ===========================================
# Relaxed limits for development testing
MAX_REQUEST_SIZE=52428800
MAX_FIELD_SIZE=5242880
ALLOWED_FILE_TYPES=.jpg,.jpeg,.png,.gif,.pdf,.txt,.md,.json,.xml,.csv,.log
SANITIZE_HTML=true
# ===========================================
# Monitoring and Logging (Development)
# ===========================================
# REQUIRED: Verbose development logging
LOG_LEVEL=trace
LOG_FORMAT=pretty
ENABLE_ACCESS_LOGS=true
ENABLE_ERROR_LOGS=true
LOG_RETENTION_DAYS=7
LOG_STRUCTURED_JSON=false
# ===========================================
# Performance Monitoring (Development)
# ===========================================
# REQUIRED: Enable all performance monitoring
PERFORMANCE_MONITORING=true
PERFORMANCE_TRACE_ENABLED=true
BOTTLENECK_DETECTION=true
LATENCY_TRACKING=true
# ===========================================
# Telemetry System (Development)
# ===========================================
# REQUIRED: Enable comprehensive telemetry
TELEMETRY_ENABLED=true
TELEMETRY_LOG_LEVEL=trace
TELEMETRY_METRICS_INTERVAL=1000
TELEMETRY_GPU_MONITORING=true
TELEMETRY_NETWORK_MONITORING=true
# ===========================================
# Network State Monitoring (Development)
# ===========================================
# REQUIRED: Enable all network monitoring
NETWORK_STATE_MONITORING=true
CONNECTION_HEALTH_CHECKS=true
RETRY_OPERATION_LOGGING=true
CIRCUIT_BREAKER_LOGGING=true
# ===========================================
# Health Check (Development)
# ===========================================
# OPTIONAL: Health check endpoint
HEALTH_CHECK_ENABLED=true
HEALTH_CHECK_PORT=9501
HEALTH_CHECK_PATH=/health
# ===========================================
# Hot Reload Configuration (Development)
# ===========================================
# OPTIONAL: Enable hot reload for faster development
HOT_RELOAD_ENABLED=true
WATCH_FILE_CHANGES=true
AUTO_RESTART_ON_CHANGE=true
# ===========================================
# Development Tools
# ===========================================
# OPTIONAL: Enable development tools and debugging endpoints
DEV_TOOLS_ENABLED=true
ENABLE_PROFILING=true
ENABLE_DEBUG_ENDPOINTS=true
MOCK_EXTERNAL_APIS=false
# ===========================================
# Resource Limits (Development)
# ===========================================
# Relaxed limits for development
MAX_MEMORY_MB=4096
MAX_CPU_CORES=4
MAX_WORKERS=4
MAX_CONNECTIONS=100
# ===========================================
# Feature Flags (Development)
# ===========================================
# Enable experimental features in development
FEATURE_FLAG_EXPERIMENTAL=true
FEATURE_FLAG_BETA_FEATURES=true
FEATURE_FLAG_DEBUG_UI=true