Skip to content

Configure Meilisearch and the Audiobookshelf listener port through environment variables #3105

Closed

Description

@stavros-k

Packaged deployments (compose stacks, TrueNAS and similar app catalogs) need to set these at deploy time, but today they can only be changed after install, or not at all.

1. Meilisearch connection

Packaged stacks start Meilisearch next to Silo, but there's no way to connect them at deploy time. The URL and key exist only as admin settings (catalog.search.provider, catalog.search.meilisearch.url and catalog.search.meilisearch.api_key), so every install needs a manual step in the admin UI after first start. Until someone does it, Silo silently keeps using PostgreSQL search.

DATABASE_URL and REDIS_URL already come from the environment, and SILO_TRUSTED_PROXIES shows a pattern for env-driven settings (internal/clientip/config.go, SeedDefaults). When set, the variable wins at startup, is validated and saved to server_settings so the admin UI shows the value in effect, and is reapplied on every start.

Proposal: the same for search:

  • SILO_SEARCH_PROVIDER → catalog.search.provider
  • SILO_MEILISEARCH_URL → catalog.search.meilisearch.url
  • SILO_MEILISEARCH_API_KEY → catalog.search.meilisearch.api_key

With these, the bundled docker-compose.yml search profile could also connect Silo to its own Meilisearch service out of the box.

2. Audiobookshelf listener port

The main and Jellyfin listeners take their ports from PORT and JF_PORT (internal/config/bootstrap.go), and jellyfin_compat.listen can also be changed in the admin settings. The Audiobookshelf listener is hardcoded (internal/config/db_loader.go):

if absCompatEnabled {
    cfg.AudiobookshelfCompat.Listen = ":13378"
}

Neither an env var nor a setting can move it. A deployment that can only change the host side of the mapping is fine, but one where the container runs on the host's network, or where 13378 is already taken, can't move it at all.

Proposal: read ABS_PORT the same way as JF_PORT, defaulting to 13378. The name lines up with the ABS_PORT that .env.example already uses for the host side, just as JF_PORT does.

Activity

  1. added
    enhancement
    feature-request
    priority: P2
    triaged
    on Oct 26, 2026
  2. self-assigned this
    on Oct 26, 2026
  3. Quick104 commented on Oct 26, 2026

    @Quick104
    Contributor

    🤖 AI agent claim. Claude Code (claude-opus-5-5) is working on a fix for this issue on behalf of @Quick104, who is assigned.

    A pull request will link here when the fix is ready. If the work stops without a fix, the assignment and this comment are removed.

    Planning to work on this, or have context to add? Reply here and mention @Quick104.

  4. added a commit that references this issue on Oct 27, 2026
    bca55f7
  5. added 3 commits that reference this issue on Oct 28, 2026
    5773863
    5444ec6
    f6db0bc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

enhancementfeature-requestpriority: P2triaged

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions