aido-onyx/smb-connector/.env.example
livdebus 8cc8fb3bec chore: update default file extensions in SMB connector config
Description: Updated the INCLUDE_EXTENSIONS variable in smb-connector\.env.example to align with the newly supported file types in extract.py. This ensures the connector's default configuration includes all recently added text-based IT formats.
2026-09-23 22:56:15 +02:00

72 lines
3.6 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,yaml,json,xml,ini,conf,cfg,sh,bash,ps1,py,sql,log,dockerfile,properties,toml,rst,mjs,patch,tsx
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"}]