11# AstroML Environment Configuration
22# Copy this file to .env and customize for your environment
3- # See docker-env-guide.md for detailed configuration information
4-
53# ============================================================================
64# Database Configuration
75# ============================================================================
@@ -20,6 +18,9 @@ REDIS_PORT=6379
2018REDIS_PASSWORD = your_redis_password_here
2119REDIS_URL = redis://:your_redis_password_here@redis:6379/0
2220REDIS_DB = 0
21+ # Redis configuration
22+ REDIS_DEFAULT_TTL = 300
23+ REDIS_MAX_CONNECTIONS = 10
2324
2425# ============================================================================
2526# Feature Store Configuration
@@ -43,12 +44,14 @@ STELLAR_SECRET_KEY=your_stellar_secret_key_here
4344# ============================================================================
4445# Application Configuration
4546# ============================================================================
47+ APP_ENV = development
48+ ASTROML_ENV = development
49+ PYTHONPATH = /app
50+ DEBUG = true
51+
4652LOG_LEVEL = INFO
4753LOG_FORMAT = json
4854LOG_FILE = ./logs/astroml.log
49- PYTHONPATH = /app
50- APP_ENV = development
51- DEBUG = False
5255
5356# ============================================================================
5457# API Configuration
@@ -88,7 +91,7 @@ MLFLOW_TRACKING_URI=http://localhost:5000
8891MLFLOW_EXPERIMENT_NAME = astroml
8992
9093# ============================================================================
91- # Jupyter Configuration (for development)
94+ # Jupyter Configuration
9295# ============================================================================
9396JUPYTER_TOKEN = astroml_dev
9497JUPYTER_PASSWORD = astroml_dev
@@ -149,10 +152,6 @@ SOROBAN_NETWORK=public
149152SOROBAN_RPC_URL = https://soroban-testnet.stellar.org
150153SOROBAN_SECRET_KEY = your_soroban_secret_key_here
151154SOROBAN_FEE = 10000
152-
153- # ============================================================================
154- # Performance Configuration
155- # ============================================================================
156155MAX_WORKERS = 4
157156BATCH_SIZE = 1000
158157MEMORY_LIMIT = 8GB
@@ -165,6 +164,14 @@ NETWORK_TIMEOUT=30
165164RETRY_COUNT = 3
166165RETRY_DELAY = 1
167166
167+ # ============================================================================
168+ # Feature Store Advanced Configuration
169+ # ============================================================================
170+ FEATURE_STORE_CACHE_STRATEGY = LRU
171+ FEATURE_STORE_STORAGE_FORMAT = PARQUET
172+ FEATURE_STORAGE_COMPRESSION = snappy
173+ FEATURE_STORE_VERSIONING = true
174+
168175# ============================================================================
169176# Development Configuration
170177# ============================================================================
@@ -174,7 +181,10 @@ MOCK_SERVICES=false
174181
175182# ============================================================================
176183# Production Configuration
184+ # ============================================================================# ============================================================================
185+ # Production Configuration
177186# ============================================================================
187+ # Production Configuration
178188PROD_MODE = false
179189MONITORING_ENABLED = false
180190ALERTING_ENABLED = false
@@ -186,3 +196,60 @@ ENABLE_STREAMING=True
186196ENABLE_MONITORING = True
187197ENABLE_GPU_TRAINING = True
188198ENABLE_SOROBAN_CONTRACTS = True
199+
200+ # ============================================================================
201+ # Docker Configuration
202+ # ============================================================================
203+ DOCKER_REGISTRY = astroml
204+ DOCKER_TAG = latest
205+ DOCKER_BUILDKIT = 1
206+
207+ # ============================================================================
208+ # Data Configuration
209+ # ============================================================================
210+ DATA_PATH = ./data
211+ MODELS_PATH = ./models
212+ LOGS_PATH = ./logs
213+ CONFIG_PATH = ./config
214+
215+ # ============================================================================
216+ # Network Configuration
217+ # ============================================================================
218+ NETWORK_TIMEOUT = 30
219+ RETRY_COUNT = 3
220+ RETRY_DELAY = 1
221+
222+ # ============================================================================
223+ # Frontend Error Reporting (issue #292)
224+ # ============================================================================
225+ # Sentry DSN for browser error tracking. Leave blank to disable Sentry
226+ # (errors will still be logged to console and the backend endpoint).
227+ VITE_SENTRY_DSN =
228+ # Optional: human-readable release tag attached to Sentry events
229+ VITE_APP_VERSION = 0.1.0
230+
231+ # ============================================================================
232+ # Security Configuration (issues #331, #332, #333)
233+ # ============================================================================
234+ # Rate Limiting
235+ API_KEY_RATE_LIMIT_PER_MINUTE = 100
236+ JWT_RATE_LIMIT_PER_MINUTE = 60
237+
238+ # Audit Logging
239+ AUDIT_LOG_RETENTION_DAYS = 90
240+ AUDIT_LOG_MAX_RECORDS = 1000000
241+
242+ # Input Validation
243+ ENABLE_INPUT_VALIDATION = true
244+ MAX_FILE_UPLOAD_SIZE = 10485760
245+
246+ # ============================================================================
247+ # Distributed Tracing (issue #336)
248+ # ============================================================================
249+ TRACING_ENABLED = false
250+ TRACING_EXPORTER = jaeger
251+ TRACING_SAMPLE_RATE = 0.1
252+ JAEGER_AGENT_HOST = localhost
253+ JAEGER_AGENT_PORT = 6831
254+ ZIPKIN_ENDPOINT = http://localhost:9411/api/v2/spans
255+ SERVICE_NAME = astroml-api
0 commit comments