You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
docs: connect Meilisearch from .env and explain ABS_PORT - #306
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
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.
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.
"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.
Docs branched from origin/main35d8597; origin/mainba93ca0 changes none of these pages
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)
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.
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 settingsReview 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
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.
The guides document search environment variables, accepted provider and URL values, startup validation, and admin-page behavior for environment-managed fields.
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: 4 · 1
Failed checks: 1 warning
Check name
Status
Explanation
Resolution
Linked Issues check
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 checks: 4 passed
Check name
Status
Explanation
Description check
The description directly explains the Meilisearch .env documentation, port behavior, upgrade guidance, changed pages, validation, and scope.
Title check
The title is concise and accurately identifies the two main documentation changes: Meilisearch .env configuration and ABS_PORT behavior.
Out of Scope Changes check
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
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.
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.
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 settingsReview 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
The reason will be displayed to describe this comment to others. Learn more.
Follow-up Comments
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.
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
documentationImprovements or additions to documentationsize/S0–49 added + deleted lines (all files); change volume, not priority.
2 participants
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
Closes #305
The manual says to connect Meilisearch only in Admin > Server > Search, and lists
ABS_PORTonly as a host port. Silo-Server/silo-server#3117 addsSILO_SEARCH_PROVIDER,SILO_MEILISEARCH_URL, andSILO_MEILISEARCH_API_KEY, which set the search connection on every start. It also makesABS_PORTmove the Audiobookshelf listener itself, asJF_PORTdoes for Jellyfin, while the bundled Compose file keeps the container port at13378.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.envsection covers a Meilisearch server you run yourself. The bundled one is turned on withENABLE_MEILISEARCH, which belongs in the docs for #3180.Pages changed
.env" under Optional MeilisearchABS_PORTchanges the endpoint portWhat changed on each page
Server configuration and dependencies
SILO_TRUSTED_PROXIESnow 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
PORT,JF_PORT, andABS_PORTalso set the ports Silo listens on (8080,8096,13378when unset). The Compose file sets those values on thesiloservice, and they take precedence over.envinside the container. Withdocker run --env-file .env, the variables are the container side of each published port.ABS_PORT, check that thesiloservice in yourdocker-compose.ymlsetsABS_PORT: "13378"underenvironment". Without it, Silo listens on that port inside the container and Audiobookshelf apps can't connect. Add the line to thesiloservice. Downloading the current file now moves the install to the omnibus image, so the note doesn't suggest it..envroute for a Meilisearch server you run yourself..env": the three lines for a Meilisearch server you run yourself (example URLhttp://meilisearch.example:7700, as in.env.example), thendocker 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 withinvalid SILO_SEARCH_PROVIDER: ...(or the variable at fault). Every API server needs the same values.Worth checking:
docker-compose.ymlstays in place, but only installs that changedABS_PORTare affected. Say if you'd rather have a line on the update page too.h3under Optional Meilisearch, the firsth3on the page.Audiobookshelf-compatible apps (Beta)
ABS_PORTin.env. With the default Compose file that changes only the host port; without it, such as withdocker run, it's the port Silo itself listens on." Links to Ports.Left out on purpose
13378. Network access providers expose the Audiobookshelf listener on13378whateverABS_PORTis, so it stays correct.ENABLE_MEILISEARCHand 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:
origin/main0225a0589, which includes feat(config): set Meilisearch and the Audiobookshelf port from the environment silo-server#3117 asbca55f764and feat(docker): make the omnibus image the default Compose deployment silo-server#3180 as40e03ad31origin/main35d8597;origin/mainba93ca0changes none of these pagesCompose checks, run locally:
docker compose config(Docker Compose 2.40.3) on main'sdocker-compose.ymlat0225a0589, withABS_PORT=13380,SILO_SEARCH_PROVIDER=meilisearch, andSILO_MEILISEARCH_URL=http://meili.example:7700in.env: thesiloservice getsABS_PORT: "13378", publishes13380to container port13378, and receives both search variables from.env.env_file: .env: adding a line to.envand runningdocker compose up -drecreated 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.
Evidence: https://evidence.siloserver.org/r/siloserver-org/env-search-abs-port/
Follow-ups
docker.md, including Optional Meilisearch; whichever merges second needs a rebase there.docker.md, including the existing Optional Meilisearch steps, still describes the multi-container stack that feat(docker): make the omnibus image the default Compose deployment silo-server#3180 replaced. No docs issue covers that change yet.Risks
None identified. Documentation only.
Checklist
AI Disclosure
🤖 Generated with Claude Code
Note
Document Meilisearch setup via .env and clarify port variables in Docker docs
.env: required URL and API key format, greyed-out admin fields for env-managed settings, startup validation, and matching values across API servers.PORT,JF_PORT, andABS_PORTcontrol Silo's listener ports, that Compose service values take precedence over.env, and adds a troubleshooting note for older Compose files.ABS_PORTchanges only the host port with the default Compose file, but changes the port Silo listens on otherwise.Macroscope summarized 8331fa7.