Four items from client feedback:
1. Stuck 'Initial Indexing' status. Root cause (by design in Onyx):
docprocessing/utils.py never runs a classic index attempt for INGESTION_API
connectors — documents are pushed via the API, not polled — so
last_finished_status stays null and the badge is stuck even though the docs
are indexed and searchable (also why it's safe: no risk of re-index deleting
the pushed docs). Two-part fix:
- Connector now sets each cc_pair ACTIVE after provisioning (set_cc_pair_active),
which fixes the connector detail page + 'Active Connectors' count.
- Frontend overlay (branding/smb/smb-ui.patch): the Ingestion table shows the
real cc_pair_status for ingestion_api connectors instead of forcing
'Initial Indexing'. Verified live: new cc_pair comes up ACTIVE.
2. Connector name now configurable: ONYX_CONNECTOR_NAME_PREFIX (default 'AIDO SMB').
3. HTTP timeout now configurable: ONYX_HTTP_TIMEOUT (default 60), for large embeds.
4. (Phase 2 already delivered in ab64692 — the preview/path overlay.)
Verified live against running Onyx: provisioning sets ACTIVE, custom prefix
'Livtec Docs - Sales' applied, timeout honoured, ä-filename still indexed. Full
overlay apply green, no conflict markers, connector modules parse.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
72 lines
3.5 KiB
Text
72 lines
3.5 KiB
Text
# ─────────────────────────────────────────────────────────────────────────────
|
|
# AIDO SMB → Onyx sync connector
|
|
# Copy to .env and adjust. The connector runs as a sidecar next to Onyx.
|
|
# ─────────────────────────────────────────────────────────────────────────────
|
|
|
|
# Onyx API base (in-compose service name; no trailing /api needed).
|
|
ONYX_API_URL=http://api_server:8080
|
|
|
|
# Auth — provide ONE of:
|
|
# (a) a pre-created API key (simplest), or
|
|
# (b) admin credentials so the connector creates + caches its own key on first boot.
|
|
ONYX_API_KEY=
|
|
# ONYX_ADMIN_EMAIL=admin@example.com
|
|
# ONYX_ADMIN_PASSWORD=change-me
|
|
|
|
# How often to reconcile each share (seconds).
|
|
INGESTION_INTERVAL_SECONDS=300
|
|
|
|
# Prefix for the auto-created Onyx connector names ("<prefix> - <source name>").
|
|
ONYX_CONNECTOR_NAME_PREFIX=AIDO SMB
|
|
# HTTP timeout (s) for Onyx API calls — raise it for large files / slow embeddings.
|
|
ONYX_HTTP_TIMEOUT=60
|
|
|
|
# File selection.
|
|
INCLUDE_EXTENSIONS=pdf,docx,txt,md,csv,xlsx,html,htm
|
|
MAX_FILE_MB=50
|
|
LOG_LEVEL=INFO
|
|
|
|
# Codepage for recovering filenames whose bytes aren't valid UTF-8 (common on
|
|
# Windows/Latin-1 shares, e.g. 0xE4 = ä). cp1252 = Western European (default).
|
|
# The connector handles such names correctly regardless of the CIFS mount charset;
|
|
# you can additionally pass iocharset via SMB_SOURCE_<N>_MOUNT_OPTS (see below).
|
|
SMB_FILENAME_ENCODING=cp1252
|
|
|
|
# ── Sources: SMB mounted INSIDE the container (recommended) ──────────────────
|
|
# Give each share its SMB connection details and the connector mounts it itself
|
|
# (CIFS) — no host mount required. Uses the indexed style so each source can carry
|
|
# credentials. Requires the cap_add + apparmor lines in docker-compose.smb.yml.
|
|
#
|
|
# _MOUNT = where to mount it inside the container (any path)
|
|
# _UNC = //server/share (or set _SERVER + _SHARE)
|
|
# _LOGICAL = the path users recognise; shown in Onyx's citation view
|
|
# _USERNAME/_PASSWORD/_DOMAIN = CIFS credentials (omit user for guest)
|
|
# _VERS = SMB dialect, default 3.0
|
|
# _CC_PAIR_ID (optional) = use a specific connector; auto-provisioned if omitted
|
|
|
|
SMB_SOURCE_1_NAME=Finance
|
|
SMB_SOURCE_1_UNC=//nas.company.local/finance
|
|
SMB_SOURCE_1_MOUNT=/mnt/smb/finance
|
|
SMB_SOURCE_1_LOGICAL=\\company\finance
|
|
SMB_SOURCE_1_USERNAME=svc_onyx
|
|
SMB_SOURCE_1_PASSWORD=change-me
|
|
SMB_SOURCE_1_DOMAIN=COMPANY
|
|
# SMB_SOURCE_1_VERS=3.0
|
|
# Extra raw CIFS mount options, appended verbatim to `mount -t cifs -o ...`.
|
|
# e.g. force the server's charset so filenames decode at mount time:
|
|
# SMB_SOURCE_1_MOUNT_OPTS=iocharset=utf8,nocase
|
|
|
|
# SMB_SOURCE_2_NAME=Legal
|
|
# SMB_SOURCE_2_SERVER=nas.company.local
|
|
# SMB_SOURCE_2_SHARE=legal
|
|
# SMB_SOURCE_2_MOUNT=/mnt/smb/legal
|
|
# SMB_SOURCE_2_LOGICAL=\\company\legal
|
|
# SMB_SOURCE_2_USERNAME=svc_onyx
|
|
# SMB_SOURCE_2_PASSWORD=change-me
|
|
# SMB_SOURCE_2_DOMAIN=COMPANY
|
|
|
|
# ── Legacy: host-mounted shares (still supported) ────────────────────────────
|
|
# If you'd rather mount on the host and bind-mount into the container, OMIT the
|
|
# _UNC/_SERVER lines for that source (so it isn't CIFS-mounted here) and point
|
|
# _MOUNT at the bind-mounted path. You can also use the JSON form:
|
|
# SMB_SOURCES=[{"name":"Finance","mount":"/mnt/smb/finance","logical":"\\\\company\\finance"}]
|