The commit adds a complete example environment configuration file documenting all available settings for BotServer, including logging, database, server, drive, LLM, Redis, email, and feature flags. Also removes hardcoded environment variable usage throughout the codebase, replacing them with configuration via config.csv or appropriate defaults. This includes: - WhatsApp, Teams, Instagram adapter configurations - Weather API key handling - Email and directory service configurations - Console feature conditionally compiles monitoring code - Improved logging configuration with library suppression
60 lines
2.2 KiB
Text
60 lines
2.2 KiB
Text
# Example environment configuration for BotServer
|
|
# Copy this file to .env and adjust values as needed
|
|
|
|
# Logging Configuration
|
|
# Set to "trace", "debug", "info", "warn", or "error" for botserver logs
|
|
# All external library traces are automatically suppressed
|
|
RUST_LOG=info,botserver=info,aws_sigv4=off,aws_smithy_checksums=off,aws_runtime=off,aws_smithy_http_client=off,aws_smithy_runtime=off,aws_smithy_runtime_api=off,aws_sdk_s3=off,aws_config=off,aws_credential_types=off,aws_http=off,aws_sig_auth=off,aws_types=off,mio=off,tokio=off,tokio_util=off,tower=off,tower_http=off,reqwest=off,hyper=off,hyper_util=off,h2=off,rustls=off,rustls_pemfile=off,tokio_rustls=off,tracing=off,tracing_core=off,tracing_subscriber=off,diesel=off,diesel_migrations=off,r2d2=off,serde=off,serde_json=off,axum=off,axum_core=off,tonic=off,prost=off,lettre=off,imap=off,mailparse=off,crossterm=off,ratatui=off,tauri=off,tauri_runtime=off,tauri_utils=off,notify=off,ignore=off,walkdir=off,want=off,try_lock=off,futures=off,base64=off,bytes=off,encoding_rs=off,url=off,percent_encoding=off,ring=off,webpki=off,hickory_resolver=off,hickory_proto=off
|
|
|
|
# Database Configuration
|
|
DATABASE_URL=postgres://postgres:postgres@localhost:5432/botserver
|
|
|
|
# Server Configuration
|
|
SERVER_HOST=127.0.0.1
|
|
SERVER_PORT=8080
|
|
|
|
# Drive (MinIO) Configuration
|
|
DRIVE_SERVER=http://localhost:9000
|
|
DRIVE_ACCESSKEY=minioadmin
|
|
DRIVE_SECRET=minioadmin
|
|
|
|
# LLM Configuration
|
|
LLM_SERVER=http://localhost:8081
|
|
LLM_MODEL=llama2
|
|
|
|
# Redis/Valkey Cache Configuration
|
|
REDIS_URL=redis://localhost:6379
|
|
|
|
# Email Configuration (optional)
|
|
# SMTP_HOST=smtp.gmail.com
|
|
# SMTP_PORT=587
|
|
# SMTP_USER=your-email@gmail.com
|
|
# SMTP_PASSWORD=your-app-password
|
|
|
|
# Directory Service Configuration (optional)
|
|
# DIRECTORY_URL=http://localhost:8080
|
|
# DIRECTORY_TOKEN=your-directory-token
|
|
|
|
# Tenant Configuration (optional)
|
|
# TENANT_ID=default
|
|
|
|
# Worker Configuration
|
|
# WORKER_COUNT=4
|
|
|
|
# Features Configuration
|
|
# Enable/disable specific features at runtime
|
|
# ENABLE_CHAT=true
|
|
# ENABLE_AUTOMATION=true
|
|
# ENABLE_TASKS=true
|
|
# ENABLE_DRIVE=true
|
|
# ENABLE_EMAIL=false
|
|
# ENABLE_CALENDAR=false
|
|
# ENABLE_MEET=false
|
|
|
|
# Security Configuration
|
|
# JWT_SECRET=your-secret-key-here
|
|
# SESSION_TIMEOUT=3600
|
|
|
|
# Development Settings
|
|
# DEV_MODE=false
|
|
# HOT_RELOAD=false
|