41 lines
2.3 KiB
Plaintext
41 lines
2.3 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
|
|
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
|
|
# Required for backend provisioning endpoint; generate a fresh random secret for local use.
|
|
AI_PLATFORM_TENANT_PROVISIONING_SECRET=local-provisioner-replace-before-use
|
|
AI_PLATFORM_ADMIN_COOKIE_SECURE=false
|
|
AI_PLATFORM_SESSION_TTL_SECONDS=28800
|
|
# Optional, required together when sending webhook to a local Omni receiver.
|
|
# AI_PLATFORM_WEBHOOK_URL=http://localhost:8080/api/v1/internal/lead-scoring/events
|
|
# AI_PLATFORM_WEBHOOK_SIGNING_SECRET=local-replace-with-at-least-32-characters
|
|
# 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; provision a separate test tenant.
|
|
# LEAD_SCORING_FIXTURE_TENANT_KEY=
|
|
# Do not place tenant keys, V-Keys, admin sessions or backend URLs in PUBLIC_* variables.
|