electric-horses-infra/stacks/eh-search/.env.example
Benjamin Weinlich b3813ed6ac feat(stacks/eh-search): add site-search FastAPI service
Mirrors /opt/ai-apps/eh-search/ on the server, including the full
FastAPI app (intent routing, FTS+fuzzy+substring hybrid, multi-source
federation across vehicles + blog + brands + pages + static + tag
bridge), SQL schema (Postgres materialized view with german_unaccent
text search, pg_trgm for fuzzy), Dockerfile and compose.

Sanitized the hardcoded password in sql/01_init.sql — replaced with
REPLACE_ME_BEFORE_APPLYING placeholder since this repo is public.

The eh-search service binds only on the private network (10.0.0.8:8200)
and is reachable only via Pegasus nginx proxy at /api/search.

Refs OP#1094 OP#1105 OP#1112 OP#1116 OP#1117
2026-04-11 22:19:39 +02:00

28 lines
672 B
Text

# eh-search — Environment template
# Copy to .env and fill in actual values. NEVER commit .env to Git.
ENVIRONMENT=dev
# Postgres (eh_vehicles via loco-replica-db on host private network)
DB_HOST=10.0.0.8
DB_PORT=5433
DB_NAME=eh_vehicles
DB_USER=search_read
DB_PASSWORD=<siehe Password-Manager / sql/01_init.sql Hinweis>
# Redis (intra-stack, no password)
REDIS_HOST=eh-search-redis
REDIS_PORT=6379
REDIS_DB=0
# Cache TTLs (seconds)
CACHE_TTL_RESULT=60
CACHE_TTL_SUGGEST=600
CACHE_TTL_EMPTY=300
# Directus (for slug resolution)
DIRECTUS_URL=http://10.0.0.10:8055
DIRECTUS_SLUG_REFRESH_SECONDS=300
# CORS (leer wenn same-origin via Nginx auf Pegasus)
CORS_ORIGINS=