This commit is contained in:
Mikan
2026-06-20 19:13:05 +03:00
parent 32575e217e
commit 8514c63ec6
193 changed files with 22105 additions and 11660 deletions

View File

@@ -1,39 +1,38 @@
# === Database ===
POSTGRES_DB=airpg
POSTGRES_USER=airpg
POSTGRES_PASSWORD=airpg_secret
POSTGRES_PASSWORD=airpg
POSTGRES_DB=airpg
DATABASE_URL=postgresql+asyncpg://airpg:airpg@db:5432/airpg
DATABASE_URL_SYNC=postgresql+psycopg2://airpg:airpg@db:5432/airpg
# === Auth ===
JWT_SECRET=change_me_in_production_please
# If empty, the backend will generate and print a one-time admin setup token to console on first run.
# === Qdrant ===
QDRANT_URL=http://qdrant:6333
QDRANT_API_KEY=
# === LLM ===
LLM_API_URL=http://host.docker.internal:11434/v1
LLM_API_KEY=
LLM_MODEL=qwen2.5-7b-instruct
LLM_TIMEOUT_SECONDS=60
# === Embeddings ===
EMBEDDINGS_PROVIDER=offline_hash
EMBEDDINGS_API_URL=
EMBEDDINGS_API_KEY=
EMBEDDINGS_MODEL=text-embedding-3-small
EMBEDDINGS_DIMENSION=256
# === Application ===
SECRET_KEY=change-me-in-production-32-bytes-long-min
DEBUG=false
LOG_LEVEL=INFO
CORS_ORIGINS=http://localhost,http://localhost:5173
# === Admin setup ===
ADMIN_SETUP_TOKEN=
# === CORS ===
CORS_ORIGINS=http://localhost:5173,http://localhost:8080
# === Storage ===
DATA_DIR=/app/data
# === Logging ===
LOG_LEVEL=INFO
# === Default LLM (overridable via admin panel) ===
# Any OpenAI-compatible endpoint (vLLM, llama.cpp server, LM Studio, Ollama with /v1, OpenAI, OpenRouter, etc.)
DEFAULT_LLM_BASE_URL=http://host.docker.internal:1234/v1
DEFAULT_LLM_API_KEY=dummy
DEFAULT_LLM_MODEL=local-model
# === Default embeddings / RAG (overridable via admin panel) ===
# provider: "hash" (offline fallback, no semantic quality) or "openai" (real /embeddings endpoint).
# When provider=openai and base_url/api_key are empty, they fall back to the LLM settings above.
DEFAULT_EMBEDDING_PROVIDER=hash
DEFAULT_EMBEDDING_BASE_URL=
DEFAULT_EMBEDDING_API_KEY=
DEFAULT_EMBEDDING_MODEL=text-embedding-3-small
DEFAULT_EMBEDDING_DIM=0
DEFAULT_EMBEDDING_REQUEST_TIMEOUT=60
# === Frontend ===
# Vite dev-server proxy target — INSIDE the frontend container "localhost" is
# the container itself, so docker-compose defaults this to http://backend:8000
# (the service name). Override only if you run vite outside docker against a
# host backend (in which case use http://localhost:8000).
API_PROXY_TARGET=http://backend:8000
FRONTEND_BUILD_TARGET=dev
# === Frontend (Vite dev) ===
VITE_API_BASE_URL=http://localhost/api