dotb_ai-platform/.env.example
hungtran24 b1f6643796 refactor: score synchronously and drop webhook/background execution
POST /v1/lead-scoring/score now evaluates in the request, applies an overall
AI deadline, and stores the completed run only after scoring. Idempotency is
kept by (app_id, account_id, request_id) with a body fingerprint.

Removes the webhook outbox, scheduler/recovery loop, app lead_scoring
permission, credential audit events, seed_demo and generate_secret scripts,
and the tests that covered them. Trims tests to behavior of the new flow.
2026-10-09 02:44:24 +07:00

37 lines
2.0 KiB
Plaintext

# Example values for local development only. Do not use these credentials in staging/production.
# .env is ignored by Git. .env.test is local-only and must point to ai_platform_test.
# Compose interpolates this file; only explicitly listed environment entries reach containers.
# Docker Compose PostgreSQL (local only)
POSTGRES_USER=ai_platform
POSTGRES_PASSWORD=local-change-this-password
POSTGRES_DB=ai_platform
POSTGRES_PORT=55432
# Shared backend port for native Make commands and the Compose host mapping.
BACKEND_PORT=8000
WEB_PORT=3000
# Backend: read by ai_platform.infrastructure.config.settings.Settings (AI_PLATFORM_ prefix)
AI_PLATFORM_ENVIRONMENT=development
AI_PLATFORM_DATABASE_URL=postgresql+asyncpg://ai_platform:local-change-this-password@127.0.0.1:55432/ai_platform
AI_PLATFORM_ADMIN_COOKIE_SECURE=false
AI_PLATFORM_SESSION_TTL_SECONDS=28800
# Lead Scoring AI profile selects AIHub by default. Omni supplies X-Tenant-VKey per AI request.
# AI_PLATFORM_AIHUB_BASE_URL=http://localhost:8080
# Alternative for an internal Lead Scoring AI profile: server-only OpenAI-compatible endpoint.
# Run the backend natively when CLIProxy binds only to 127.0.0.1 on the host.
# Optional default OpenAI-compatible URL and key for this URL only.
# Admin Web may save another URL per AI profile; this key is never forwarded to other URLs.
# AI_PLATFORM_OPENAI_BASE_URL=http://127.0.0.1:8317
# Optional on local development loopback; configure separately before using a protected URL.
# AI_PLATFORM_OPENAI_API_KEY=
# Choose provider, URL and model in Admin Web Cấu hình AI; keys never go in the browser.
# Compose web origin only; native SvelteKit dev reads apps/web/.env.
WEB_ORIGIN=http://localhost:3000
# Web header label; set test only when the backend uses an isolated test database.
WEB_ENVIRONMENT=development
# Optional server-only key for the internal fixture runner; issue a separate test app.
# LEAD_SCORING_FIXTURE_APP_API_KEY=
# Do not place app keys, V-Keys, admin sessions or backend URLs in PUBLIC_* variables.