# Database Configuration for Foxhunt HFT Trading System # Environment-specific configurations with proper defaults [production] # PostgreSQL Production Configuration postgres_url = "${POSTGRES_URL:-postgresql://foxhunt_prod:${POSTGRES_PASSWORD}@${POSTGRES_HOST:-db-prod.foxhunt.internal}:${POSTGRES_PORT:-5432}/${POSTGRES_DB:-foxhunt_production}}" postgres_pool_max = "${POSTGRES_POOL_MAX:-50}" postgres_pool_min = "${POSTGRES_POOL_MIN:-10}" postgres_timeout_ms = "${POSTGRES_TIMEOUT_MS:-10}" # Redis Production Configuration redis_url = "${REDIS_URL:-redis://${REDIS_HOST:-cache-prod.foxhunt.internal}:${REDIS_PORT:-6379}}" redis_pool_size = "${REDIS_POOL_SIZE:-20}" redis_timeout_ms = "${REDIS_TIMEOUT_MS:-5}" # InfluxDB Production Configuration influx_url = "${INFLUXDB_URL:-http://${INFLUXDB_HOST:-metrics-prod.foxhunt.internal}:${INFLUXDB_PORT:-8086}}" influx_org = "${INFLUXDB_ORG:-foxhunt}" influx_bucket = "${INFLUXDB_BUCKET:-market_data_prod}" influx_token = "${INFLUXDB_TOKEN}" [staging] # PostgreSQL Staging Configuration postgres_url = "${POSTGRES_URL:-postgresql://foxhunt_stage:${POSTGRES_PASSWORD}@${POSTGRES_HOST:-db-stage.foxhunt.internal}:${POSTGRES_PORT:-5432}/${POSTGRES_DB:-foxhunt_staging}}" postgres_pool_max = "${POSTGRES_POOL_MAX:-20}" postgres_pool_min = "${POSTGRES_POOL_MIN:-5}" postgres_timeout_ms = "${POSTGRES_TIMEOUT_MS:-100}" # Redis Staging Configuration redis_url = "${REDIS_URL:-redis://${REDIS_HOST:-cache-stage.foxhunt.internal}:${REDIS_PORT:-6379}}" redis_pool_size = "${REDIS_POOL_SIZE:-10}" redis_timeout_ms = "${REDIS_TIMEOUT_MS:-50}" # InfluxDB Staging Configuration influx_url = "${INFLUXDB_URL:-http://${INFLUXDB_HOST:-metrics-stage.foxhunt.internal}:${INFLUXDB_PORT:-8086}}" influx_org = "${INFLUXDB_ORG:-foxhunt}" influx_bucket = "${INFLUXDB_BUCKET:-market_data_stage}" influx_token = "${INFLUXDB_TOKEN}" [development] # PostgreSQL Development Configuration postgres_url = "${POSTGRES_URL:-postgresql://foxhunt_dev:${POSTGRES_PASSWORD:-foxhunt_dev_pass}@${POSTGRES_HOST:-localhost}:${POSTGRES_PORT:-5432}/${POSTGRES_DB:-foxhunt_dev}}" postgres_pool_max = "${POSTGRES_POOL_MAX:-10}" postgres_pool_min = "${POSTGRES_POOL_MIN:-2}" postgres_timeout_ms = "${POSTGRES_TIMEOUT_MS:-5000}" # Redis Development Configuration redis_url = "${REDIS_URL:-redis://${REDIS_HOST:-localhost}:${REDIS_PORT:-6379}}" redis_pool_size = "${REDIS_POOL_SIZE:-5}" redis_timeout_ms = "${REDIS_TIMEOUT_MS:-1000}" # InfluxDB Development Configuration influx_url = "${INFLUXDB_URL:-http://${INFLUXDB_HOST:-localhost}:${INFLUXDB_PORT:-8086}}" influx_org = "${INFLUXDB_ORG:-foxhunt}" influx_bucket = "${INFLUXDB_BUCKET:-market_data_dev}" influx_token = "${INFLUXDB_TOKEN:-dev-token}" [testing] # PostgreSQL Testing Configuration postgres_url = "${TEST_POSTGRES_URL:-postgresql://foxhunt_test:${TEST_POSTGRES_PASSWORD:-test_pass}@${TEST_POSTGRES_HOST:-localhost}:${TEST_POSTGRES_PORT:-5433}/${TEST_POSTGRES_DB:-foxhunt_test}}" postgres_pool_max = "${TEST_POSTGRES_POOL_MAX:-5}" postgres_pool_min = "${TEST_POSTGRES_POOL_MIN:-1}" postgres_timeout_ms = "${TEST_POSTGRES_TIMEOUT_MS:-10000}" # Redis Testing Configuration redis_url = "${TEST_REDIS_URL:-redis://${TEST_REDIS_HOST:-localhost}:${TEST_REDIS_PORT:-6380}}" redis_pool_size = "${TEST_REDIS_POOL_SIZE:-2}" redis_timeout_ms = "${TEST_REDIS_TIMEOUT_MS:-5000}" # InfluxDB Testing Configuration influx_url = "${TEST_INFLUXDB_URL:-http://${TEST_INFLUXDB_HOST:-localhost}:${TEST_INFLUXDB_PORT:-8087}}" influx_org = "${TEST_INFLUXDB_ORG:-foxhunt_test}" influx_bucket = "${TEST_INFLUXDB_BUCKET:-market_data_test}" influx_token = "${TEST_INFLUXDB_TOKEN:-test-token}"