Commit graph

5 commits

Author SHA1 Message Date
4e5f379900 feat: migrate LiteLLM config to env vars and expand file handlers
Description: This commit introduces two main improvements to the SMB connector and LiteLLM configuration:

Configuration Security & Flexibility:
Refactored litellm-config.yaml to replace hardcoded API base URLs with the INFOMANIAK_BASE environment variable.
Updated .env.example to include the new INFOMANIAK_BASE variable, ensuring a consistent and secure configuration management strategy.
Added a new embedding model configuration (LivQwenEmbed) to the LiteLLM setup.
Enhanced File Type Support:
Extended the extract.py script to support a wider range of text-based IT file formats, including yaml, yml, json, xml, ini, conf, cfg, sh, bash, ps1, py, sql, log, dockerfile, properties, toml, rst, mjs, patch, and tsx.
2026-09-23 22:16:18 +02:00
56b0e95790 feat: enhance LiteLLM proxy configuration and deployment setup
Configuration updates to the Aido deployment stack, focusing on LiteLLM proxy hardening, improved model configuration, and enhanced environment setup.
2026-08-14 23:18:57 +02:00
livdebus
7a618d4a74 feat: production hardening with LiteLLM proxy integration and security updates
## Overview
Major production readiness update integrating LiteLLM proxy for AI model
management, security hardening, and infrastructure simplification.

## Changes

### 🔐 Security & Secrets Management
- Auto-generate secrets via `openssl rand -hex` for:
  - `USER_AUTH_SECRET`, `ENCRYPTION_KEY_SECRET`, `METRICS_AUTH_TOKEN`
  - `POSTGRES_PASSWORD`, `LITELLM_*` credentials
- Set `DISABLE_TELEMETRY=true` for data sovereignty compliance
- Changed `POSTGRES_USER` from `postgres` → `onyx-admin`
- Set `TRACK_EXTERNAL_IDP_EXPIRY=true`

### 🤖 LiteLLM Proxy Integration
- **New service**: `litellm-proxy` with dedicated Postgres + Redis
- **New config**: `litellm-config.yaml` with 3 Swiss-hosted models:
  - `LivQwen` (Qwen3.5-397B-A17B-FP8)
  - `LivKimi` (Kimi-K2.6)
  - `LivGemma` (NVIDIA Nemotron-3-Nano-30B-A3B-FP8)
- Model fallback routing: LivQwen ↔ LivKimi ↔ LivGemma
- Caching enabled via Redis with 3600s TTL
- Custom error message mappings for user-friendly responses

### 🏗️ Infrastructure Updates
- Switched from local builds → official Onyx Docker images
  - Removed `build.context` for api_server, background, inference/indexing servers
- Increased NGINX timeouts: 300s → 600s (for complex AI queries)
- Added PostgreSQL connection pooling & keepalive settings
- S3 credentials now fully environment-driven (no hardcoded values)
- Added `S3_REGION` variable
- Removed certbot service (SSL handled externally)

### ⚙️ Configuration
- `COMPOSE_PROFILES=s3-filestore` uncommented
- `DISABLE_LITELLM_STREAMING=false`
- `LLM_SOCKET_READ_TIMEOUT=600`
- `GENERATIVE_MODEL_ACCESS_CHECK_FREQ=300` (5 minutes)
2026-06-30 23:04:24 +02:00
livdebus
1d650c4d30 refactor: flatten structure, sparse-checkout upstream, add base compose for dockge/traefik
Replace the nested `onyx/` full-clone approach with a flattened, self-contained
deployment structure:

- `make setup` now uses `git sparse-checkout` to fetch only `web/` and
  `deployment/data/nginx/` from upstream, extracting them flat into `./web`
  and `./data/nginx`. This avoids downloading the entire Onyx repository
  when we only rebuild the branded web container ourselves.
- Add a top-level `docker-compose.yml` as the base stack file instead of
  referencing paths inside `onyx/deployment/...`. This keeps the compose
  project in the repo root so it can be managed by dockge and simplifies
  putting Traefik in front of the Onyx nginx.
- Update `docker-compose.branding.yml` build context from `./onyx/web` to `./web`.
- Update `branding.config.json`:
  - `webSrcRoot`: `onyx/web` → `web`
  - `pinnedCommit`: pinned hash → `main`
  - Add rename literals for "Open Source AI Platform" → "Powered by Livtec"
    and `https://www.onyx.app` → `https://livtec.cloud`
- Replace the minimal `.env.example` with the full Onyx deployment template.
- Add `setup.sh` for server provisioning (Node.js 25, make, /opt/stacks/onyx).
- Update `make verify` to search `./web/src` instead of `./onyx/web/src`.

All backend/model services continue to use official upstream Docker images;
only the `web_server` image is built locally from the branded source.
2026-06-29 12:43:31 +02:00
NaeemDosh
c6e3776617 AIDO white-label overlay for Onyx Community Edition
Thin-overlay white-label: branding driven by a single config, applied into
onyx/web by apply-branding.mjs; only the web image is built locally while all
other services use official Onyx images.

- branding/branding.config.json: single source of truth (name, assets, links)
- branding/apply-branding.mjs: asset fetch + logo swap + favicon repoint + codemod
- docker-compose.branding.yml + Makefile: build only livtec/aido-web, pull the rest
- .env/.env.nginx examples + README (update-branding & upgrade-Onyx workflows)

Community Edition only; no EE/commercial features used.
2026-06-27 08:06:58 +05:00