# Worker Service - Environment Configuration Example
# Copy this file to .env and update with your values
# =============================================================================
# Database Configuration
# =============================================================================
DATABASE_URL=postgresql://worker_service_user:mpi_password@localhost:5432/worker_service
DATABASE_MAX_CONNECTIONS=10
DATABASE_MIN_CONNECTIONS=2
# PostgreSQL Docker settings (for docker-compose.yml)
POSTGRES_DB=mpi
POSTGRES_USER=mpi_user
POSTGRES_PASSWORD=mpi_password
POSTGRES_PORT=5432
# =============================================================================
# Server Configuration
# =============================================================================
SERVER_HOST=127.0.0.1
SERVER_PORT=8080
GRPC_PORT=50051
# =============================================================================
# Search Engine Configuration
# =============================================================================
SEARCH_INDEX_PATH=./search_index
SEARCH_CACHE_SIZE_MB=512
# =============================================================================
# Matching Algorithm Configuration
# =============================================================================
MATCHING_THRESHOLD=0.7
MATCHING_NAME_WEIGHT=0.4
MATCHING_DOB_WEIGHT=0.3
MATCHING_GENDER_WEIGHT=0.1
MATCHING_ADDRESS_WEIGHT=0.2
# Legacy matching configuration (deprecated)
MATCHING_THRESHOLD_SCORE=0.85
MATCHING_EXACT_MATCH_SCORE=1.0
MATCHING_FUZZY_MATCH_SCORE=0.8
# =============================================================================
# Logging Configuration
# =============================================================================
# Options: error, warn, info, debug, trace
RUST_LOG=info
LOG_LEVEL=info
RUST_BACKTRACE=0
# =============================================================================
# OpenTelemetry Configuration
# =============================================================================
OTLP_SERVICE_NAME=worker-service
OTLP_ENDPOINT=http://localhost:4317
# =============================================================================
# Event Streaming Configuration
# =============================================================================
# Fluvio broker (if using Fluvio instead of in-memory)
FLUVIO_BROKER_URL=localhost:9003
FLUVIO_TOPIC=worker-events
# =============================================================================
# Docker Compose Settings
# =============================================================================
# MPI Server port mapping
MPI_PORT=8080
# pgAdmin settings (optional, use with --profile tools)
PGADMIN_EMAIL=admin@mpi.local
PGADMIN_PASSWORD=admin
PGADMIN_PORT=5050