-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.example
More file actions
119 lines (99 loc) · 4.12 KB
/
.env.example
File metadata and controls
119 lines (99 loc) · 4.12 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
# ContextForge Environment Configuration
# Copy this file to .env and update with your values
# =============================================================================
# DATABASE CONFIGURATION
# =============================================================================
# For local development (simple setup with SQLite)
DATABASE_URL="file:./dev.db"
# For production or when you need PostgreSQL (uncomment and comment SQLite above)
# DATABASE_URL="postgresql://contextforge:your-password@localhost:5432/contextforge"
# =============================================================================
# AUTHENTICATION & SECURITY
# =============================================================================
# NextAuth configuration
NEXTAUTH_URL="http://localhost:3001"
NEXTAUTH_SECRET="generate-a-secure-secret-key-here"
# JWT Secret for API authentication
JWT_SECRET="generate-a-secure-jwt-secret-here"
# Encryption key for storing API keys (32 characters)
ENCRYPTION_KEY="generate-32-character-encryption-key"
# =============================================================================
# AI MODEL API KEYS
# =============================================================================
# Add your AI provider API keys here
# Users will configure these in the app settings UI
OPENAI_API_KEY="your-openai-api-key-here"
ANTHROPIC_API_KEY="your-anthropic-api-key-here"
GOOGLE_AI_API_KEY="your-google-ai-api-key-here"
# GitHub API for repository imports
GITHUB_TOKEN="your-github-personal-access-token"
# =============================================================================
# REDIS CONFIGURATION (Optional - for job queues and caching)
# =============================================================================
# For local development without Docker
REDIS_HOST="localhost"
REDIS_PORT="6379"
REDIS_PASSWORD=""
# Alternative Redis URL format
# REDIS_URL="redis://localhost:6379"
# =============================================================================
# APPLICATION SETTINGS
# =============================================================================
# Development/Production mode
NODE_ENV="development"
# WebSocket configuration
WS_PORT="8080"
ALLOWED_ORIGINS="http://localhost:3001,http://localhost:3000"
# API Rate limiting
RATE_LIMIT_WINDOW="15" # minutes
RATE_LIMIT_MAX_REQUESTS="100"
# Job queue settings
MAX_JOB_RETRIES="3"
JOB_TIMEOUT="300000" # 5 minutes in milliseconds
# Background processing features
ENABLE_AUTO_CLASSIFICATION="true"
ENABLE_AUTO_OPTIMIZATION="true"
ENABLE_DUPLICATE_DETECTION="true"
ENABLE_QUALITY_ASSESSMENT="true"
# Performance settings
MAX_CONCURRENT_JOBS="10"
BATCH_SIZE="10"
CLEANUP_INTERVAL="86400000" # 24 hours in milliseconds
# =============================================================================
# AI MODEL CONFIGURATION
# =============================================================================
# Default models for different providers (latest recommended models)
ANTHROPIC_DEFAULT_MODEL="claude-sonnet-4-0"
ANTHROPIC_FAST_MODEL="claude-3-5-haiku-latest"
OPENAI_DEFAULT_MODEL="gpt-5"
OPENAI_FAST_MODEL="gpt-5-mini"
GOOGLE_DEFAULT_MODEL="gemini-2.5-pro"
GOOGLE_FAST_MODEL="gemini-2.5-flash"
# Task-specific model assignments
OPTIMIZATION_MODEL="gpt-5"
CATEGORIZATION_MODEL="gpt-5"
CHAT_MODEL="gemini-2.5-flash"
# Model pricing (per 1K tokens) - for cost estimation
CLAUDE_SONNET_4_COST="0.003"
GPT_5_COST="0.01"
GPT_5_MINI_COST="0.0015"
GEMINI_2_5_PRO_COST="0.0035"
GEMINI_2_5_FLASH_COST="0.0005"
# Model token limits
CLAUDE_SONNET_4_MAX_TOKENS="200000"
GPT_5_MAX_TOKENS="128000"
GPT_5_MINI_MAX_TOKENS="128000"
GEMINI_2_5_PRO_MAX_TOKENS="2000000"
GEMINI_2_5_FLASH_MAX_TOKENS="1000000"
# =============================================================================
# MONITORING & DEBUGGING
# =============================================================================
DEBUG="false"
LOG_LEVEL="info"
METRICS_ENABLED="true"
HEALTH_CHECK_INTERVAL="30000" # 30 seconds
# =============================================================================
# FILE UPLOAD SETTINGS
# =============================================================================
MAX_FILE_SIZE="10485760" # 10MB in bytes
UPLOAD_DIR="./uploads"