-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy path.env.example
More file actions
172 lines (147 loc) · 4.92 KB
/
.env.example
File metadata and controls
172 lines (147 loc) · 4.92 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
# XMRT-Ecosystem Configuration
# Copy this to .env and fill in your actual values
# ===============================================
# CORE APPLICATION SETTINGS
# ===============================================
FLASK_ENV=production
FLASK_DEBUG=False
SECRET_KEY=your-super-secret-key-change-this-in-production
PORT=5000
HOST=0.0.0.0
# ===============================================
# AI MODEL CONFIGURATION
# ===============================================
# OpenAI Configuration
OPENAI_API_KEY=sk-your-openai-api-key-here
OPENAI_MODEL=gpt-4
OPENAI_MAX_TOKENS=4000
# Google Gemini Configuration
GEMINI_API_KEY=your-gemini-api-key-here
GEMINI_MODEL=gemini-pro
# Anthropic Configuration (Optional)
ANTHROPIC_API_KEY=your-anthropic-api-key-here
# ===============================================
# AUTONOMOUS LEARNING SYSTEM
# ===============================================
AUTONOMOUS_LEARNING_ENABLED=true
LEARNING_INTERVAL=300 # seconds
LEARNING_MEMORY_SIZE=1000
LEARNING_ADAPTATION_RATE=0.01
AUTONOMOUS_DECISION_THRESHOLD=0.7
# ===============================================
# MULTI-AGENT SYSTEM
# ===============================================
MULTI_AGENT_ENABLED=true
MAX_AGENTS=10
AGENT_COORDINATION_INTERVAL=60 # seconds
AGENT_TASK_TIMEOUT=300 # seconds
# Specialized Agents Configuration
STRATEGIST_AGENT_ENABLED=true
BUILDER_AGENT_ENABLED=true
TESTER_AGENT_ENABLED=true
OPTIMIZER_AGENT_ENABLED=true
# ===============================================
# GITHUB INTEGRATION
# ===============================================
GITHUB_TOKEN=ghp_your-github-personal-access-token
GITHUB_OWNER=DevGruGold
GITHUB_REPO=XMRT-Ecosystem
GITHUB_BRANCH=main
GITHUB_WEBHOOK_SECRET=your-webhook-secret
GITHUB_AUTO_ANALYSIS=true
GITHUB_AUTO_PR=false
# ===============================================
# DATABASE & MEMORY SYSTEM
# ===============================================
# Supabase Configuration (Primary Database)
SUPABASE_URL=https://your-project.supabase.co
SUPABASE_KEY=your-supabase-anon-key
SUPABASE_SERVICE_KEY=your-supabase-service-role-key
# Memory System Configuration
PERSISTENT_MEMORY_ENABLED=true
MEMORY_RETENTION_DAYS=30
MEMORY_CLEANUP_INTERVAL=86400 # seconds (24 hours)
# ===============================================
# ANALYTICS & MONITORING
# ===============================================
ANALYTICS_ENABLED=true
REAL_TIME_MONITORING=true
PERFORMANCE_TRACKING=true
USER_BEHAVIOR_ANALYTICS=true
ANOMALY_DETECTION=true
# Metrics Collection
METRICS_COLLECTION_INTERVAL=60 # seconds
METRICS_RETENTION_DAYS=7
ALERT_THRESHOLDS_CPU=80 # percent
ALERT_THRESHOLDS_MEMORY=85 # percent
# ===============================================
# WEBSOCKET & REAL-TIME FEATURES
# ===============================================
SOCKETIO_ENABLED=true
SOCKETIO_CORS_ALLOWED_ORIGINS=*
SOCKETIO_PING_TIMEOUT=60
SOCKETIO_PING_INTERVAL=25
REAL_TIME_UPDATES=true
# ===============================================
# SECURITY SETTINGS
# ===============================================
CORS_ORIGINS=* # Change to specific domains in production
RATE_LIMITING_ENABLED=true
RATE_LIMIT_PER_MINUTE=100
API_KEY_REQUIRED=false # Set to true for production
JWT_SECRET=your-jwt-secret-key
# ===============================================
# CLOUD DEPLOYMENT
# ===============================================
# Render.com (Current Platform)
RENDER_EXTERNAL_URL=https://xmrt-ecosystem-e3bm.onrender.com
# Optional: Other Cloud Platforms
# VERCEL_URL=
# HEROKU_URL=
# AWS_REGION=
# GOOGLE_CLOUD_PROJECT=
# ===============================================
# FEATURE TOGGLES
# ===============================================
FEATURE_AUTONOMOUS_LEARNING=true
FEATURE_MULTI_AGENTS=true
FEATURE_GITHUB_INTEGRATION=true
FEATURE_REAL_TIME_ANALYTICS=true
FEATURE_PERSISTENT_MEMORY=true
FEATURE_OPTIMIZATION_ENGINE=true
# Development Features
FEATURE_DEBUG_MODE=false
FEATURE_VERBOSE_LOGGING=false
FEATURE_DEVELOPMENT_TOOLS=false
# ===============================================
# PERFORMANCE OPTIMIZATION
# ===============================================
WORKERS=2 # Gunicorn workers
WORKER_CLASS=gevent
WORKER_CONNECTIONS=1000
MAX_REQUESTS=1000
MAX_REQUESTS_JITTER=100
TIMEOUT=120
KEEPALIVE=5
# Cache Configuration
CACHE_ENABLED=true
CACHE_TTL=300 # seconds
CACHE_MAX_SIZE=1000
# ===============================================
# LOGGING CONFIGURATION
# ===============================================
LOG_LEVEL=INFO
LOG_FORMAT=%(asctime)s - %(name)s - %(levelname)s - %(message)s
LOG_FILE_ENABLED=false
LOG_FILE_PATH=logs/xmrt-ecosystem.log
# ===============================================
# IMPORTANT SECURITY NOTES
# ===============================================
# 1. NEVER commit this file with real values to version control
# 2. Always use environment-specific .env files
# 3. Rotate API keys regularly
# 4. Use strong, unique passwords and secrets
# 5. Enable rate limiting in production
# 6. Restrict CORS origins in production
# 7. Enable HTTPS in production environments
# ===============================================