Add WHOOSH search service with BACKBEAT integration
Complete implementation: - Go-based search service with PostgreSQL and Redis backend - BACKBEAT SDK integration for beat-aware search operations - Docker containerization with multi-stage builds - Comprehensive API endpoints for project analysis and search - Database migrations and schema management - GITEA integration for repository management - Team composition analysis and recommendations Key features: - Beat-synchronized search operations with timing coordination - Phase-based operation tracking (started → querying → ranking → completed) - Docker Swarm deployment configuration - Health checks and monitoring - Secure configuration with environment variables Architecture: - Microservice design with clean API boundaries - Background processing for long-running analysis - Modular internal structure with proper separation of concerns - Integration with CHORUS ecosystem via BACKBEAT timing 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
39
.env.example
Normal file
39
.env.example
Normal file
@@ -0,0 +1,39 @@
|
||||
# WHOOSH Configuration Example
|
||||
# Copy to .env and configure for local development
|
||||
|
||||
# Database Configuration
|
||||
WHOOSH_DATABASE_HOST=localhost
|
||||
WHOOSH_DATABASE_PORT=5432
|
||||
WHOOSH_DATABASE_DB_NAME=whoosh
|
||||
WHOOSH_DATABASE_USERNAME=whoosh
|
||||
WHOOSH_DATABASE_PASSWORD=your_database_password_here
|
||||
WHOOSH_DATABASE_SSL_MODE=disable
|
||||
WHOOSH_DATABASE_AUTO_MIGRATE=true
|
||||
|
||||
# Server Configuration
|
||||
WHOOSH_SERVER_LISTEN_ADDR=:8080
|
||||
WHOOSH_SERVER_READ_TIMEOUT=30s
|
||||
WHOOSH_SERVER_WRITE_TIMEOUT=30s
|
||||
WHOOSH_SERVER_SHUTDOWN_TIMEOUT=30s
|
||||
|
||||
# GITEA Configuration
|
||||
WHOOSH_GITEA_BASE_URL=http://ironwood:3000
|
||||
WHOOSH_GITEA_TOKEN=your_gitea_token_here
|
||||
WHOOSH_GITEA_WEBHOOK_PATH=/webhooks/gitea
|
||||
WHOOSH_GITEA_WEBHOOK_TOKEN=your_webhook_secret_here
|
||||
|
||||
# Authentication Configuration
|
||||
WHOOSH_AUTH_JWT_SECRET=your_jwt_secret_here
|
||||
WHOOSH_AUTH_SERVICE_TOKENS=token1,token2,token3
|
||||
WHOOSH_AUTH_JWT_EXPIRY=24h
|
||||
|
||||
# Logging Configuration
|
||||
WHOOSH_LOGGING_LEVEL=debug
|
||||
WHOOSH_LOGGING_ENVIRONMENT=development
|
||||
|
||||
# Redis Configuration (optional)
|
||||
WHOOSH_REDIS_ENABLED=false
|
||||
WHOOSH_REDIS_HOST=localhost
|
||||
WHOOSH_REDIS_PORT=6379
|
||||
WHOOSH_REDIS_PASSWORD=your_redis_password
|
||||
WHOOSH_REDIS_DATABASE=0
|
||||
Reference in New Issue
Block a user