Replaces the custom chat page with an external LibreChat instance that shares Keycloak SSO for seamless auto-login. Removes Tools and Knowledge Base pages as these are now handled by LibreChat's built-in capabilities. - Add LibreChat service to docker-compose with Ollama backend config - Add Keycloak OIDC client (certifai-librechat) with prompt=none for silent SSO - Create librechat.yaml with CERTifAI branding, Ollama endpoint, and custom page title/logo - Change sidebar Chat link to external URL (opens LibreChat in new tab) - Remove chat page, tools page, knowledge base page and all related components (chat_sidebar, chat_bubble, chat_input_bar, etc.) - Remove tool_card, file_row components and tool/knowledge models - Remove chat_stream SSE handler (no longer needed) - Clean up i18n files: remove chat, tools, knowledge sections - Dashboard article summarization via Ollama remains intact Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
86 lines
3.5 KiB
Plaintext
86 lines
3.5 KiB
Plaintext
# ============================================================================
|
|
# CERTifAI Dashboard - Environment Variables
|
|
# ============================================================================
|
|
# Copy this file to .env and fill in the values.
|
|
# Variables marked [REQUIRED] must be set; others have sensible defaults.
|
|
|
|
# ---------------------------------------------------------------------------
|
|
# Keycloak Configuration (frontend public client) [REQUIRED]
|
|
# ---------------------------------------------------------------------------
|
|
KEYCLOAK_URL=http://localhost:8080
|
|
KEYCLOAK_REALM=certifai
|
|
KEYCLOAK_CLIENT_ID=certifai-dashboard
|
|
|
|
# Keycloak admin / service-account client (server-to-server calls) [OPTIONAL]
|
|
KEYCLOAK_ADMIN_CLIENT_ID=
|
|
KEYCLOAK_ADMIN_CLIENT_SECRET=
|
|
|
|
# ---------------------------------------------------------------------------
|
|
# Application Configuration [REQUIRED]
|
|
# ---------------------------------------------------------------------------
|
|
APP_URL=http://localhost:8000
|
|
REDIRECT_URI=http://localhost:8000/auth/callback
|
|
ALLOWED_ORIGINS=http://localhost:8000
|
|
|
|
# ---------------------------------------------------------------------------
|
|
# MongoDB [OPTIONAL - defaults shown]
|
|
# ---------------------------------------------------------------------------
|
|
MONGODB_URI=mongodb://localhost:27017
|
|
MONGODB_DATABASE=certifai
|
|
|
|
# ---------------------------------------------------------------------------
|
|
# SearXNG meta-search engine [OPTIONAL - default: http://localhost:8888]
|
|
# ---------------------------------------------------------------------------
|
|
SEARXNG_URL=http://localhost:8888
|
|
|
|
# ---------------------------------------------------------------------------
|
|
# Ollama LLM instance [OPTIONAL - defaults shown]
|
|
# ---------------------------------------------------------------------------
|
|
OLLAMA_URL=http://localhost:11434
|
|
OLLAMA_MODEL=llama3.1:8b
|
|
|
|
# ---------------------------------------------------------------------------
|
|
# LibreChat (external chat via SSO) [OPTIONAL - default: http://localhost:3080]
|
|
# ---------------------------------------------------------------------------
|
|
LIBRECHAT_URL=http://localhost:3080
|
|
|
|
# ---------------------------------------------------------------------------
|
|
# LLM Providers (comma-separated list) [OPTIONAL]
|
|
# ---------------------------------------------------------------------------
|
|
LLM_PROVIDERS=ollama
|
|
|
|
# ---------------------------------------------------------------------------
|
|
# SMTP (transactional email) [OPTIONAL]
|
|
# ---------------------------------------------------------------------------
|
|
SMTP_HOST=
|
|
SMTP_PORT=587
|
|
SMTP_USERNAME=
|
|
SMTP_PASSWORD=
|
|
SMTP_FROM_ADDRESS=
|
|
|
|
# ---------------------------------------------------------------------------
|
|
# Stripe billing [OPTIONAL]
|
|
# ---------------------------------------------------------------------------
|
|
STRIPE_SECRET_KEY=
|
|
STRIPE_WEBHOOK_SECRET=
|
|
STRIPE_PUBLISHABLE_KEY=
|
|
|
|
# ---------------------------------------------------------------------------
|
|
# LangChain / LangGraph / Langfuse [OPTIONAL]
|
|
# ---------------------------------------------------------------------------
|
|
LANGCHAIN_URL=
|
|
LANGGRAPH_URL=
|
|
LANGFUSE_URL=
|
|
|
|
# ---------------------------------------------------------------------------
|
|
# Vector database [OPTIONAL]
|
|
# ---------------------------------------------------------------------------
|
|
VECTORDB_URL=
|
|
|
|
# ---------------------------------------------------------------------------
|
|
# S3-compatible object storage [OPTIONAL]
|
|
# ---------------------------------------------------------------------------
|
|
S3_URL=
|
|
S3_ACCESS_KEY=
|
|
S3_SECRET_KEY=
|