Skip to content

docs: connect Meilisearch from .env and explain ABS_PORT - #306

Merged
zZebrahz merged 5 commits into
mainfrom
docs/env-search-abs-port
Oct 30, 2026
Merged

zZebrahz merged 5 commits into
mainfrom
docs/env-search-abs-port

Conversation

@Quick104

@Quick104 Quick104 commented Oct 27, 2026 •

Copy link
Copy Markdown
Contributor

Problem

Closes #305

The manual says to connect Meilisearch only in Admin > Server > Search, and lists ABS_PORT only as a host port. Silo-Server/silo-server#3117 adds SILO_SEARCH_PROVIDER, SILO_MEILISEARCH_URL, and SILO_MEILISEARCH_API_KEY, which set the search connection on every start. It also makes ABS_PORT move the Audiobookshelf listener itself, as JF_PORT does for Jellyfin, while the bundled Compose file keeps the container port at 13378.

Silo-Server/silo-server#3117 merged into main as bca55f764. Since then, Silo-Server/silo-server#3180 made the omnibus image the default Compose file, so the .env section covers a Meilisearch server you run yourself. The bundled one is turned on with ENABLE_MEILISEARCH, which belongs in the docs for #3180.

Pages changed

Page Change Preview
Server configuration and dependencies The environment override paragraph names the search variables and the greyed-out field Open
Docker deployment reference Two paragraphs under Ports; a pointer and a new section "Connect Meilisearch in .env" under Optional Meilisearch Ports, Meilisearch
Audiobookshelf-compatible apps (Beta) ABS_PORT changes the endpoint port Open

What changed on each page

Server configuration and dependencies

  • The paragraph that names SILO_TRUSTED_PROXIES now also names the three search variables, links to the new Docker section, and says a field set this way is greyed out with a note such as Managed by SILO_TRUSTED_PROXIES.

Docker deployment reference

  • Ports: PORT, JF_PORT, and ABS_PORT also set the ports Silo listens on (8080, 8096, 13378 when unset). The Compose file sets those values on the silo service, and they take precedence over .env inside the container. With docker run --env-file .env, the variables are the container side of each published port.
  • Ports, for upgrades: "If you've changed ABS_PORT, check that the silo service in your docker-compose.yml sets ABS_PORT: "13378" under environment". Without it, Silo listens on that port inside the container and Audiobookshelf apps can't connect. Add the line to the silo service. Downloading the current file now moves the install to the omnibus image, so the note doesn't suggest it.
  • Optional Meilisearch: after the steps, a line pointing to the .env route for a Meilisearch server you run yourself.
  • New section "Connect Meilisearch in .env": the three lines for a Meilisearch server you run yourself (example URL http://meilisearch.example:7700, as in .env.example), then docker compose up -d. While they're set, Admin > Server > Search shows the engine and URL in use and greys out the fields they set. Remove a line and recreate the container to edit that field again; it keeps the last value. An invalid value stops Silo with invalid SILO_SEARCH_PROVIDER: ... (or the variable at fault). Every API server needs the same values.

Worth checking:

  • The upgrade note sits in Ports, not in Update Silo safely. The update steps pull only the image, so an older docker-compose.yml stays in place, but only installs that changed ABS_PORT are affected. Say if you'd rather have a line on the update page too.
  • The new section is an h3 under Optional Meilisearch, the first h3 on the page.

Audiobookshelf-compatible apps (Beta)

  • "To use another port, set ABS_PORT in .env. With the default Compose file that changes only the host port; without it, such as with docker run, it's the port Silo itself listens on." Links to Ports.

Left out on purpose

  • The Tailscale page's port 13378. Network access providers expose the Audiobookshelf listener on 13378 whatever ABS_PORT is, so it stays correct.
  • How the server stores the values (the key encrypted, the URL's trailing slash dropped) and the status code for a refused save. No other page goes that deep.
  • Host networking with the bundled Compose file. The Discovery section already says that file isn't set up for host networking.
  • ENABLE_MEILISEARCH and the bundled Meilisearch in the omnibus Compose file, which sets these variables itself. That belongs in the docs for feat(docker): make the omnibus image the default Compose deployment silo-server#3180.

Evidence

Source reviewed, not tested on a live server or device:

Compose checks, run locally:

  • docker compose config (Docker Compose 2.40.3) on main's docker-compose.yml at 0225a0589, with ABS_PORT=13380, SILO_SEARCH_PROVIDER=meilisearch, and SILO_MEILISEARCH_URL=http://meili.example:7700 in .env: the silo service gets ABS_PORT: "13378", publishes 13380 to container port 13378, and receives both search variables from .env.
  • A throwaway one-service project with env_file: .env: adding a line to .env and running docker compose up -d recreated the container with the new variable.

Needs a hands-on check: Nothing. The server behavior comes from the source; Silo-Server/silo-server#3117 validated it live.

$ bun run test:docs
ℹ tests 8
ℹ pass 8
ℹ fail 0

$ bun run build
· All internal links are valid. ·
[build] 106 page(s) built in 3.97s
[build] Complete!

$ git diff --check
(no output)

Evidence: https://evidence.siloserver.org/r/siloserver-org/env-search-abs-port/

Follow-ups

Risks

None identified. Documentation only.

Checklist

  • I read and can explain the complete diff.
  • This pull request addresses one concern.

AI Disclosure

  • Harness: Claude Code, run from T3 Code
  • Tool(s): Claude Code; silo-docs and humanizer skills
  • Model(s): claude-opus-5-5
  • Involvement: Fully AI-generated at the maintainer's direction; human verification pending
  • Adversarial review: n/a

🤖 Generated with Claude Code

Note

Document Meilisearch setup via .env and clarify port variables in Docker docs

  • Adds a new section in docker.md covering Meilisearch configuration through .env: required URL and API key format, greyed-out admin fields for env-managed settings, startup validation, and matching values across API servers.
  • Documents that PORT, JF_PORT, and ABS_PORT control Silo's listener ports, that Compose service values take precedence over .env, and adds a troubleshooting note for older Compose files.
  • Clarifies in audiobookshelf.md that ABS_PORT changes only the host port with the default Compose file, but changes the port Silo listens on otherwise.
  • Expands the override example in configuration.md with search provider, Meilisearch URL, and API key variables.

Macroscope summarized 8331fa7.

@Quick104

Copy link
Copy Markdown
Contributor Author

Draft until Silo-Server/silo-server#3117 is merged into main. The docs describe that change, and its labels or defaults may still change in review.

@silo-triage silo-triage Bot added the size/S 0–49 added + deleted lines (all files); change volume, not priority. label Oct 27, 2026
@silo-kody

silo-kody Bot commented Oct 27, 2026 •

Copy link
Copy Markdown

Silo Kody — review complete

Review finished. Check the inline comments for findings and verify each suggestion against the code and tests.

Reviewing changes in Silo
  • Include the related issue, expected behavior, and validation steps in the PR description.
  • For API changes, describe the effect on Apple and Android clients and Jellyfin compatibility.
  • For plugin changes, identify the affected SDK contract, plugin, and catalog entry.
  • Follow this repository's AGENTS.md and CONTRIBUTING.md.
  • Request another review with @kody start-review in a PR comment.
  • React with 👍 or 👎 to give feedback on individual suggestions.
Review settings
Review Options

The following review options are enabled or disabled:

Options Enabled
Bug ✅
Performance ✅
Security ✅
Business Logic ❌
⚠️ 2 Kody Rule(s) were not evaluated

These rules declare that they need repository context beyond this diff, and the review could not retrieve it, so they were not judged on this pull request:

  • Scope polling setup steps to installable source capabilities
  • Preserve retired documentation URLs with tested redirects

@coderabbitai

coderabbitai Bot commented Oct 27, 2026 •

Copy link
Copy Markdown

Review in Change Stack →

Walkthrough

The deployment documentation explains how ABS_PORT affects host and listener ports, including Compose compatibility guidance. It also documents Meilisearch environment variables, accepted values, startup validation, and admin-page behavior for environment-managed settings.

Changes: Deployment configuration documentation

Layer / File(s) Summary
Audiobookshelf port configuration
src/content/docs/docs/running-a-server/docker.md, src/content/docs/docs/beta/audiobookshelf.md
The Docker guide explains port precedence and the Compose compatibility setting for ABS_PORT. The Audiobookshelf guide distinguishes host-port behavior with the default Compose file from listener-port behavior without it.
Meilisearch environment configuration
src/content/docs/docs/running-a-server/configuration.md, src/content/docs/docs/running-a-server/docker.md
The guides document search environment variables, accepted provider and URL values, startup validation, and admin-page behavior for environment-managed fields.

Priority: Normal

Estimated code review effort: 2 (Simple) | ~10 minutes

Change: Other · Severity of issue fixed: Medium

Possibly related PRs

  • Silo-Server/siloserver.org#216: Both PRs document Docker port configuration. This PR adds details on how the port variables affect host and listener ports.

Suggested reviewers: zzebrahz

Merge Risk: Low · up to 8331f

The search configuration guidance is mildly contradictory; clarify it before merging so operators understand the supported startup configuration.

Architecture risk: Low · up to 8331f

The change affects 1 system.

Changed systems: src

Architecture concerns
No architecture-level concerns identified.

Review details

Systems and components

  • observed — src (service) was modified; 3 changed files map to changed impact.

Before / after behavior

  • observed — Modified behavior in src/content/docs/docs/beta/audiobookshelf.md: The port instructions now distinguish ABS_PORT behavior: with the default Compose file it changes only the host port, while without that file (for example, with docker run) it changes Silo’s listening port. They also link to the Docker ports documentation; the existing advice to give listeners a reachable address and restrict external access to HTTPS remains.
  • observed — Modified behavior in src/content/docs/docs/running-a-server/configuration.md: The environment-override example now includes the search provider and Meilisearch connection variables as well as trusted proxies, and documents that environment-managed fields are greyed out with a management note in the admin page.
  • observed — Modified behavior in src/content/docs/docs/running-a-server/docker.md: Documents Silo’s internal listening ports and how Compose-set container values take precedence over .env. For other Docker launch methods, the variables set the container-side published ports. It also notes that older Compose files may omit ABS_PORT: "13378", causing Audiobookshelf connections to fail when ABS_PORT is changed, and specifies the line to add.
  • observed — Modified behavior in src/content/docs/docs/running-a-server/docker.md: Adds a link from the optional-service instructions to the new section for connecting a self-managed Meilisearch server through .env.
Pre-merge checks: Passed 4 · Failed 1

Failed Failed checks: 1 warning

Check name Status Explanation Resolution
Linked Issues check Warning Issue #305 is the only active direct target. The PR documents the three search variables, environment-managed admin fields, startup validation, same values across API servers, ABS_PORT listener beha… In src/content/docs/docs/running-a-server/docker.md, revise the warning under Optional Meilisearch to name both methods: the Admin > Server > Search steps and the Connect Meilisearch in .env method. Keep the warning that port 7700 is pu…
Passed Passed checks: 4 passed
Check name Status Explanation
Description check Passed The description directly explains the Meilisearch .env documentation, port behavior, upgrade guidance, changed pages, validation, and scope.
Title check Passed The title is concise and accurately identifies the two main documentation changes: Meilisearch .env configuration and ABS_PORT behavior.
Out of Scope Changes check Passed The changes stay within issue #305 scope. They modify only the Docker, server configuration, and Audiobookshelf documentation pages named by the issue. The changes cover environment-based Meilisearch …
Docstring Coverage Passed No eligible functions found in the changed files. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentat…
Full details: Out of Scope Changes check

Explanation

The changes stay within issue #305 scope. They modify only the Docker, server configuration, and Audiobookshelf documentation pages named by the issue. The changes cover environment-based Meilisearch setup, port behavior, and the older Compose-file upgrade case. No Tailscale, client-app, or unrelated #38 implementation is included.

Full details: Docstring Coverage

Explanation

No eligible functions found in the changed files. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentation-only edits and deletions within surviving functions are included; unchanged diff context and fully deleted functions are excluded. Analyzed 0 functions across 0 files. (1 skipped: 1 unsupported.)

Full details: Linked Issues check

Explanation

Issue #305 is the only active direct target. The PR documents the three search variables, environment-managed admin fields, startup validation, same values across API servers, ABS_PORT listener behavior, Compose precedence, and the upgrade fix. The PR also updates the required three pages. However, #305 requires the existing Optional Meilisearch warning to name both ways to switch the search engine. docker.md still says, "Starting the container alone does not switch Silo's search engine." It does not name the .env method. The new .env section does not correct this unmet requirement.

Resolution

In src/content/docs/docs/running-a-server/docker.md, revise the warning under Optional Meilisearch to name both methods: the Admin > Server > Search steps and the Connect Meilisearch in .env method. Keep the warning that port 7700 is published on the host loopback address.

Finishing Touches
🧪 Generate unit tests (beta)
  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Comment @coderabbitai help to get the list of available commands.

@silo-triage silo-triage Bot added the documentation Improvements or additions to documentation label Oct 27, 2026
@github-actions

github-actions Bot commented Oct 27, 2026 •

Copy link
Copy Markdown

Preview removed after this pull request was closed. Its address now redirects to siloserver.org, though some visitors may still see the old preview for a while.

@zZebrahz

Copy link
Copy Markdown
Contributor

Ready for review: Silo-Server/silo-server#3117 merged as bca55f764. The review thread checks these pages against current main before this merges.

@silo-kody

silo-kody Bot commented Oct 30, 2026 •

Copy link
Copy Markdown

Silo Kody — review complete

Review finished. Check the inline comments for findings and verify each suggestion against the code and tests.

Reviewing changes in Silo
  • Include the related issue, expected behavior, and validation steps in the PR description.
  • For API changes, describe the effect on Apple and Android clients and Jellyfin compatibility.
  • For plugin changes, identify the affected SDK contract, plugin, and catalog entry.
  • Follow this repository's AGENTS.md and CONTRIBUTING.md.
  • Request another review with @kody start-review in a PR comment.
  • React with 👍 or 👎 to give feedback on individual suggestions.
Review settings
Review Options

The following review options are enabled or disabled:

Options Enabled
Bug ✅
Performance ✅
Security ✅
Business Logic ❌
⚠️ 2 Kody Rule(s) were not evaluated

These rules declare that they need repository context beyond this diff, and the review could not retrieve it, so they were not judged on this pull request:

  • Scope polling setup steps to installable source capabilities
  • Preserve retired documentation URLs with tested redirects

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Follow-up Comments

Outside diff Update the search-engine switch warning.

95-95: Minor · Functional Correctness · Quick win

Update the search-engine switch warning.

The new .env workflow contradicts this sentence. After the three variables are set, docker compose up -d applies them and switches Silo to Meilisearch; the server reads these values before building the provider. (github.com)

Change the sentence to state that starting the container alone does not switch the engine unless the admin settings or the .env variables configure it.

Proposed wording
-Starting the container alone does not switch Silo's search engine.
+Starting the container alone does not switch Silo's search engine unless you configure it in the admin page or with the `.env` variables below.

Open the source location


Review info
Run configuration
  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 7c123461-4aaf-4e75-8266-e3d2c42c67df
Commits

Reviewing files that changed from the base of the PR and between 1c836ab and 8331fa7.

Files selected for processing: 1
  • src/content/docs/docs/running-a-server/docker.md

Included review availability: This review used your included allowance. 4 included reviews remain after this review. Your included PR review attempts over the past 7 days set your current allowance at 10 reviews per hour.

@zZebrahz
zZebrahz merged commit 550e282 into main Oct 30, 2026
5 checks passed

This branch was previously deployed

1 inactive deployment
Preview — 8331fa7b Deployed Oct 30, 2026 by zZebrahz via teardown #148
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation size/S 0–49 added + deleted lines (all files); change volume, not priority.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

docs: set Meilisearch and the Audiobookshelf port from environment variables

2 participants