Configuration ENV

Variables d'environnement et hardening.

Derniere mise a jour: 2026-04-05 11:13

Environment Configuration

Copy .env.example to .env and set:

  • DATABASE_URL: SQLAlchemy DSN for PostgreSQL
  • CELERY_BROKER_URL: Redis broker DB
  • CELERY_RESULT_BACKEND: Redis result DB
  • SIRENE_API_KEY: optional, enables live INSEE calls
  • SEARXNG_URL: internal SearXNG endpoint
  • LLM_PROVIDER: stub or external provider mode
  • LLM_MODEL: target model id
  • OPENAI_API_KEY / ANTHROPIC_API_KEY: optional if provider needs it
  • CSV_EXPORT_DIR: output path for Odoo exports
  • SECRET_KEY: JWT signing secret

Recommended production hardening:

  • rotate SECRET_KEY
  • set network ACLs around API
  • run behind reverse proxy with TLS
  • enable backups for DB and exports directory