-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy path.env.example
More file actions
181 lines (144 loc) Β· 6.93 KB
/
.env.example
File metadata and controls
181 lines (144 loc) Β· 6.93 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
# =============================================================================
# MXGo Environment Configuration
# =============================================================================
# Copy this file to .env and configure your values
# See README.md and DOCKER_SETUP.md for detailed setup instructions
# =============================================================================
# π§ CORE APPLICATION (Required)
# =============================================================================
# Basic application configuration required for startup
# Server configuration
PORT=8000
HOST=0.0.0.0
LOG_LEVEL=INFO
IS_PROD=false
WHITELIST_ENABLED=false
X_API_KEY=your_secure_api_key_here
# For /suggestions endpoint via chrome extension
JWT_SECRET=your_jwt_secret_key_here
# =============================================================================
# π€ AI MODELS (Required)
# =============================================================================
# Configure AI models via model.config.toml - these env vars provide defaults
# LiteLLM Router Configuration
LITELLM_CONFIG_PATH=model.config.toml
LITELLM_DEFAULT_MODEL_GROUP=gpt-4 # This is IMPORTANT for which model group in routed LLM your requests should go to
# Hugging Face Token (required for smolagents)
HF_TOKEN=your_huggingface_token_here
# =============================================================================
# πΎ INFRASTRUCTURE SERVICES
# =============================================================================
# Database, cache, and message queue configuration
# PostgreSQL Database (required)
DB_HOST=postgres
DB_PORT=5432
DB_NAME=mxgo
DB_USER=mxgo
DB_PASSWORD=your_secure_db_password
# RabbitMQ Message Queue (required)
RABBITMQ_HOST=rabbitmq
RABBITMQ_PORT=5672
RABBITMQ_USER=mxgo_user
RABBITMQ_PASSWORD=your_rabbitmq_password
RABBITMQ_VHOST=/
RABBITMQ_HEARTBEAT=60
# Supabase (optional if using whitelist and validation)
SUPABASE_URL=your_supabase_project_url
SUPABASE_KEY=your_supabase_anon_key
SUPABASE_SERVICE_ROLE_KEY=your_supabase_service_role_key
# Redis Cache (Optional - for rate limiting)
REDIS_HOST=redis
REDIS_PORT=6379
REDIS_DB=0
REDIS_PASSWORD=your_redis_password
# =============================================================================
# π§ EMAIL SERVICE (Required for sending responses)
# =============================================================================
# AWS SES configuration for sending email responses
AWS_REGION=us-east-1
AWS_ACCESS_KEY_ID=your_aws_access_key_id
AWS_SECRET_ACCESS_KEY=your_aws_secret_access_key
SENDER_EMAIL=assistant@yourdomain.com
# =============================================================================
# π SEARCH SERVICES (Optional)
# =============================================================================
# Web search providers - choose based on quality/cost needs
# Google Search APIs (Premium - highest quality)
# Get from https://serpapi.com/
SERPAPI_API_KEY=
# Get from https://serper.dev/
SERPER_API_KEY=
# Brave Search API (Moderate cost - good quality)
BRAVE_SEARCH_API_KEY=
# =============================================================================
# π EXTERNAL APIS (Optional)
# =============================================================================
# Third-party services for enhanced functionality
# Jina AI (for deep research functionality)
JINA_API_KEY=
# RapidAPI (for external API data and other services)
RAPIDAPI_KEY=
# =============================================================================
# π³ PAYMENT INTEGRATION (Optional)
# =============================================================================
# Dodo Payments integration for user plan management
# Dodo Payments API key for customer and subscription lookups
DODO_API_KEY=your_dodo_payments_api_key_here
# Product ID for PRO plan identification in Dodo Payments
PRO_PLAN_PRODUCT_ID=your_pro_plan_product_id_here
# =============================================================================
# π MONITORING & OBSERVABILITY (Optional)
# =============================================================================
# Logging and monitoring services
# Logfire for advanced logging (optional)
LOGFIRE_TOKEN=
# =============================================================================
# βοΈ SCHEDULER & WORKER CONFIG (Optional)
# =============================================================================
# Task scheduling and background processing
SCHEDULER_API_BASE_URL=http://api_server:8000
SCHEDULER_API_TIMEOUT=300
# =============================================================================
# π οΈ MCP TOOLS (Optional - Feature is in progress)
# =============================================================================
# Model Context Protocol configuration
MXGO_ENABLE_MCP=true
MXGO_MCP_CONFIG_PATH=mcp.toml
MXGO_MCP_TIMEOUT=30
# =============================================================================
# π FRONTEND & EXTERNAL URLS (Optional)
# =============================================================================
# Frontend and external service URLs
WHITELIST_SIGNUP_URL=https://mxgo.ai/whitelist
FRONTEND_URL=https://mxgo.ai/
# =============================================================================
# π§ͺ DEVELOPMENT & TESTING (Development Only)
# =============================================================================
# Variables used only in development/testing
# Uncomment for testing
# TEST_EMAIL=test@example.com
# =============================================================================
# π³ DOCKER DEVELOPMENT OVERRIDES (Docker Only)
# =============================================================================
# These override the defaults above for Docker development
# Uncomment and modify only if you need different values for Docker
# API_PORT=8000
# RABBITMQ_MANAGEMENT_PORT=15672
# =============================================================================
# π³ DOCKER DEVELOPMENT OVERRIDES (Docker Only)
# =============================================================================
# These override the defaults in docker-compose.yml for Docker development
# Uncomment and modify only if you need different values for Docker
# Port Overrides
# API_PORT=8000 # External API port (default: 8000)
# DB_PORT=5432 # PostgreSQL port (default: 5432)
# REDIS_PORT=6379 # Redis port (default: 6379)
# RABBITMQ_PORT=5672 # RabbitMQ AMQP port (default: 5672)
# RABBITMQ_MANAGEMENT_PORT=15672 # RabbitMQ web UI port (default: 15672)
# Service Authentication Overrides
# DB_NAME=mxgo # Database name (default: mxgo)
# DB_USER=mxgo # Database user (default: mxgo)
# DB_PASSWORD=your_db_password # Database password (default: docker_changeme_123)
# REDIS_PASSWORD=your_redis_pass # Redis password (default: docker_redis_123)
# RABBITMQ_USER=your_rmq_user # RabbitMQ user (default: docker_guest)
# RABBITMQ_PASSWORD=your_rmq_pass # RabbitMQ password (default: docker_guest_123)