-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.example
More file actions
142 lines (111 loc) · 3.62 KB
/
Copy path.env.example
File metadata and controls
142 lines (111 loc) · 3.62 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
# AI-IDE Environment Configuration
# Copy this file to .env and fill in your actual values
# ================================
# Google OAuth Configuration
# ================================
# Get these from Google Cloud Console:
# 1. Go to https://console.cloud.google.com/
# 2. Create a new project or select existing
# 3. Enable Google Drive API
# 4. Create OAuth 2.0 credentials (Web application)
# 5. Add http://localhost:3001/api/v1/auth/google/callback to redirect URIs
GOOGLE_CLIENT_ID=your_google_client_id_here
GOOGLE_CLIENT_SECRET=your_google_client_secret_here
# ================================
# Application Security
# ================================
# Generate a strong random string for JWT signing
# Example: openssl rand -hex 32
SESSION_SECRET=your_super_secret_jwt_signing_key_here
# Encryption key for storing OAuth tokens
# Example: openssl rand -hex 32
ENCRYPTION_KEY=your_encryption_key_for_tokens_here
# ================================
# Database Configuration
# ================================
# MongoDB connection string
# Local: mongodb://localhost:27017/ai-ide
# Docker: mongodb://mongodb:27017/ai-ide
# Atlas: mongodb+srv://username:password@cluster.mongodb.net/ai-ide
MONGODB_URI=mongodb://localhost:27017/ai-ide
# ================================
# Application Configuration
# ================================
# Node environment
NODE_ENV=development
# Backend server port
PORT=3001
# Frontend development server port
VITE_PORT=3000
# Backend API base URL (for frontend)
VITE_API_BASE_URL=http://localhost:3001
# ================================
# File Storage Configuration
# ================================
# Local cache directory for projects
LOCAL_CACHE_PATH=./cache/projects
# Maximum file size for uploads (in bytes)
MAX_FILE_SIZE=10485760
# Maximum project size (in bytes)
MAX_PROJECT_SIZE=104857600
# ================================
# Docker Configuration
# ================================
# Docker socket path (usually auto-detected)
DOCKER_SOCKET=/var/run/docker.sock
# Default resource limits for containers
DEFAULT_MEMORY_LIMIT=512m
DEFAULT_CPU_LIMIT=0.5
DEFAULT_TIMEOUT_MINUTES=10
# Container idle timeout (minutes)
CONTAINER_IDLE_TIMEOUT=30
# ================================
# Development Configuration
# ================================
# Enable debug logging
DEBUG=ai-ide:*
# Enable development features
ENABLE_DEV_TOOLS=true
# Hot reload for backend (nodemon)
ENABLE_HOT_RELOAD=true
# ================================
# Security Configuration
# ================================
# Rate limiting (requests per minute)
RATE_LIMIT_WINDOW=15
RATE_LIMIT_MAX_REQUESTS=100
# CORS origins (comma-separated)
CORS_ORIGINS=http://localhost:3000,http://localhost:3001
# Enable HTTPS in production
ENABLE_HTTPS=false
# SSL certificate paths (for production)
SSL_CERT_PATH=
SSL_KEY_PATH=
# ================================
# Monitoring & Logging
# ================================
# Log level: error, warn, info, http, verbose, debug, silly
LOG_LEVEL=info
# Enable metrics collection
ENABLE_METRICS=true
# Error tracking service (optional)
SENTRY_DSN=
# ================================
# Language Server Configuration
# ================================
# Python LSP server command
PYTHON_LSP_COMMAND=pyright-langserver
# JavaScript LSP server command
JAVASCRIPT_LSP_COMMAND=typescript-language-server
# LSP server timeout (seconds)
LSP_TIMEOUT=30
# ================================
# Testing Configuration
# ================================
# Test database URI
TEST_MONGODB_URI=mongodb://localhost:27017/ai-ide-test
# Test environment flag
TESTING=false
# Mock external services in tests
MOCK_GOOGLE_DRIVE=false
MOCK_DOCKER=false