Skip to content

docs: list server settings set from environment variables - #440

Merged
zZebrahz merged 10 commits into
mainfrom
docs/server-settings-env
Nov 21, 2026
Merged

zZebrahz merged 10 commits into
mainfrom
docs/server-settings-env

Conversation

@zZebrahz

@zZebrahz zZebrahz commented Nov 20, 2026 •

Copy link
Copy Markdown
Contributor

Problem

Closes #406

Silo Server can now take about 50 server settings from environment variables (Silo-Server/silo-server#4498), so a Compose or Kubernetes deployment doesn't need the admin pages to finish setup. The docs only mentioned the trusted proxies and search variables, and they quoted the old read-only note, Managed by SILO_TRUSTED_PROXIES. Silo now shows Set by SILO_TRUSTED_PROXIES in the server's environment.

Pages changed

Page Change Preview
Server configuration and dependencies New section "Server settings from the environment" with the variable table, and "Storage from the environment" Open
Docker reference The two quotes of the read-only note now use the new wording Open
Storage, artwork, and capacity Links to the storage variables, and says to remove them before a storage transition Open
Configure notification delivery Explains setting email with SILO_SMTP_*, including the required combination for SILO_SMTP_ENABLED=true Open

What changed on each page

Server configuration and dependencies

  • Admin-managed settings: the paragraph that named only SILO_TRUSTED_PROXIES and the search variables now notes that many of these settings can come from the server's environment instead.
  • New section Server settings from the environment:
    • How to set the variables on each API server, including what a Compose file of your own needs to pass .env to Silo, and that proxy and transcode nodes don't read them.
    • The read-only note in the admin pages and setup wizard. A blank value counts as unset.
    • Invalid values stop startup, for example invalid SILO_DB_MAX_CONNECTIONS: database.max_connections must be an integer between 1 and 10000.
    • Saved variables apply to every API server. Removing one leaves the last value saved and makes the field editable again. SILO_DB_MAX_CONNECTIONS, SILO_SCANNER_WORKERS, and SILO_MATCHER_WORKERS apply only to the server that reads them.
    • A table mapping each variable to its field and admin page, including the NVENC vs. Quick Sync/VA-API distinction for SILO_HW_DEVICE and the Beta link for SILO_AUDIOBOOKSHELF_ENABLED.
  • New subsection Storage from the environment: a table of the storage fields with their public and private variables. The storage variables must name the recorded location, and Silo refuses a storage transition while any of them is set. Steps to move storage.
  • Added the keywords "read-only setting" and "locked setting", and the questions "Why can't I edit a setting in the admin pages?" and "How do I set my server's public address in Compose?".

Worth checking: the main table puts the page in every row so each row stands on its own.

Docker reference

  • Under Optional Meilisearch and Connect Meilisearch in .env, the quoted note is now Set by SILO_SEARCH_PROVIDER in the server's environment. and Set by SILO_MEILISEARCH_URL in the server's environment. Nothing else changed in those sections.

Storage, artwork, and capacity

  • Choose artwork storage ends with a link to #storage-from-the-environment.
  • Change storage later: "If you set storage with SILO_ARTWORK_* or SILO_S3_* variables, remove them from every API server's environment first, and recreate the containers. Silo refuses to start a transition while any of them is set."

Configure notification delivery

  • Before the email steps: notes that setting SILO_SMTP_ENABLED=true requires SILO_SMTP_HOST and SILO_SMTP_FROM_ADDRESS together, that env-managed fields are greyed out, and to fill in any remaining fields, save changes, and send a test email in step 3.

Left out on purpose

Evidence

Source reviewed, not tested on a live server or device:
silo-server 1bbc479cb (contains #4498, e8de1117e9): internal/config/env_settings.go, cmd/silo/env_settings.go, internal/api/handlers/admin_settings_env.go, internal/config/admin_settings.go, internal/playback/hwdevice.go, internal/storagetransition/service.go, .env.example, web/src/pages/admin-settings/*, web/src/locales/en.json, web/src/lib/adminNavigation.ts.

Needs a hands-on check: step 3 of "Storage from the environment" (set the variables to the new location after a transition and restart) follows from the storage guard, which compares against the recorded location the transition updates. Not run on a live server.

bun run test:docs   ℹ fail 0
bun run build       Search: 159 of 169 queries find an expected page in the top 3.
git diff --check    clean

Follow-ups

  • Docs don't say that a storage transition needs a maintenance window with only one write-capable API server (storage transitions require a maintenance window with only one write-capable API node). That belongs on Change storage later in its own PR.
  • Under Connect Meilisearch in .env in docker.md, the existing 10-sentence paragraph could be split into shorter paragraphs, and Optional Meilisearch could note that resetting ENABLE_MEILISEARCH only switches back to PostgreSQL when SILO_SEARCH_PROVIDER isn't set explicitly.

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 in T3 Code (initial draft), Antigravity in T3 Code (voice pass)
  • Tool(s): git, GitHub CLI, bun
  • Model(s): claude-opus-5-5, gemini-4-neon
  • Involvement: Fully AI-generated, human verified
  • Adversarial review: Sol (gpt-6.2-sol), Opus (claude-opus-5-5), Gemini (gemini-4-neon), medium effort, 1 round, 12 of 17 findings applied (1 in part)

Note

Document server settings set through environment variables

  • Adds a section on configuring server settings via each API server's environment in configuration.md. Covers Compose setup, blank values, admin-field behavior, validation errors, saved vs server-local settings, and a variable-to-setting mapping table
  • Documents how to change storage when storage environment variables are set, including required removal steps, in configuration.md and s3-storage.md
  • Updates email setup instructions with the required SMTP variables in notifications.md
  • Aligns the Meilisearch admin-field wording with the new environment note in docker.md

Macroscope summarized 398699a.

@coderabbitai

coderabbitai Bot commented Nov 20, 2026 •

Copy link
Copy Markdown

Important

  • Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

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: 8c284a3a-1355-45f5-9d03-c80292894839
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

@silo-triage silo-triage Bot added the size/M 50–199 added + deleted lines (all files); change volume, not priority. label Nov 20, 2026
@silo-kody

silo-kody Bot commented Nov 20, 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

@silo-triage silo-triage Bot added documentation Improvements or additions to documentation triaged High-confidence review completed; does not mean fixed, validated, or accepted for release. labels Nov 20, 2026
@github-actions

github-actions Bot commented Nov 20, 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.

@silo-kody

silo-kody Bot commented Nov 20, 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

@Quick104

Copy link
Copy Markdown
Contributor

Two open silo-server pull requests add to the variable table here: Silo-Server/silo-server#4656 adds _FILE variables for secrets, and Silo-Server/silo-server#4665 adds thirteen stored variables (backups, Discord, MDBList, the Meilisearch index, the download budget, real-time monitoring, the web media URL). #406 (comment #406 (comment)) lists the rows and the other pages each one touches. Neither has merged, so this PR doesn't need to wait for them; their rows can follow once they do.

🤖 Claude Code in T3 Code (claude-opus-5-5)

@silo-kody

silo-kody Bot commented Nov 21, 2026 •

Copy link
Copy Markdown

Code Review Completed, but its comments could not be posted ⚠️

The review produced 2 comment(s), but none could be posted to this pull request (for example, the platform rejected them with a rate limit). This is not a clean review: comment @kody review on this PR to run it again.

⚠️ 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
Kody Guide: Usage and Configuration
Interacting with Kody
  • Request a Review: Ask Kody to review your PR manually by adding a comment with the @kody start-review command at the root of your PR.

  • Validate Business Logic: Ask Kody to validate your code against business rules by adding a comment with the @kody -v business-logic command.

  • Provide Feedback: Help Kody learn and improve by reacting to its comments with a 👍 for helpful suggestions or a 👎 if improvements are needed.

Current Kody Configuration
Review Options

The following review options are enabled or disabled:

Options Enabled
Bug ✅
Performance ✅
Security ✅
Business Logic ❌

Access your configuration settings here.

​

@zZebrahz

Copy link
Copy Markdown
Contributor Author

@kody review

@zZebrahz
zZebrahz merged commit 5d9f7a0 into main Nov 21, 2026
5 checks passed
Quick104 added a commit that referenced this pull request Nov 23, 2026
… page

Rename the link to the page's new title and list the SILO_RECOMMENDATIONS_* variables, now that the table from #440 is on main.
zZebrahz added a commit that referenced this pull request Nov 26, 2026
…document (#446)

* docs: configure AI providers from the deployment document


* docs: point AI services to providers declared by the deployment


* docs: set recommendations from SILO_RECOMMENDATIONS_* variables


* docs: apply review fixes to the deployment document pages

- A declaration keeps a connected provider's type, replaces it whole,
  and shares the document's secret limit with plugin secrets.
- State the id rule and that custom providers need capabilities, and
  use a generic host in the custom example.
- Show the AI key's secret in the Compose, Kubernetes and NixOS steps.
- Keep the read-only provider description on AI Services, say that
  removing the document releases nothing, and how to remove a released
  provider.
- Split the recommendations variables paragraph, say where to set them
  and which provider ids work, and cover switching a provider the
  environment sets.
- Keywords: drop words the page already uses.

* docs: match the provider type and name-clash errors

* docs: point the environment variable table to the deployment document page

Rename the link to the page's new title and list the SILO_RECOMMENDATIONS_* variables, now that the table from #440 is on main.

* docs: link the recommendations variables to the environment settings section

* docs: tighten the AI provider rules on the deployment document page


* docs: say which Kubernetes and NixOS secrets an AI provider needs


* docs: lead with the declared provider for recommendations and AI services


* docs: say why a changed provider type stops Silo from starting

* docs: number the recommendations deployment steps and say which server starts first

* docs: say SILO_RECOMMENDATIONS_PROVIDER takes any connected provider's id

---------

Co-authored-by: zZebrahz <[email protected]>

This branch was previously deployed

1 inactive deployment
Preview — 398699a5 Deployed Nov 21, 2026 by zZebrahz via teardown #224
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/M 50–199 added + deleted lines (all files); change volume, not priority. triaged High-confidence review completed; does not mean fixed, validated, or accepted for release.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

docs: server settings from environment variables

2 participants