Repository navigation
docs: list server settings set from environment variables - #440
Conversation
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars.
|
Silo Kody — review completeReview finished. Check the inline comments for findings and verify each suggestion against the code and tests. Reviewing changes in Silo
Review settingsReview OptionsThe following review options are enabled or disabled:
|
|
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 — review completeReview finished. Check the inline comments for findings and verify each suggestion against the code and tests. Reviewing changes in Silo
Review settingsReview OptionsThe following review options are enabled or disabled:
|
|
Two open silo-server pull requests add to the variable table here: Silo-Server/silo-server#4656 adds 🤖 Claude Code in T3 Code (claude-opus-5-5) |
# Conflicts: # src/content/docs/docs/using-silo/subtitles.md
Code Review Completed, but its comments could not be posted
|
| Options | Enabled |
|---|---|
| Bug | ✅ |
| Performance | ✅ |
| Security | ✅ |
| Business Logic | ❌ |
|
@kody review |
… 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.
…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]>
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
SILO_SMTP_*, including the required combination forSILO_SMTP_ENABLED=trueWhat changed on each page
Server configuration and dependencies
SILO_TRUSTED_PROXIESand the search variables now notes that many of these settings can come from the server's environment instead..envto Silo, and that proxy and transcode nodes don't read them.invalid SILO_DB_MAX_CONNECTIONS: database.max_connections must be an integer between 1 and 10000.SILO_DB_MAX_CONNECTIONS,SILO_SCANNER_WORKERS, andSILO_MATCHER_WORKERSapply only to the server that reads them.SILO_HW_DEVICEand the Beta link forSILO_AUDIOBOOKSHELF_ENABLED."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
.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
#storage-from-the-environment.SILO_ARTWORK_*orSILO_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
SILO_SMTP_ENABLED=truerequiresSILO_SMTP_HOSTandSILO_SMTP_FROM_ADDRESStogether, 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
SILO_USERDB_POOL_MAX_OPEN: it sizes only the per-user SQLite store, which the admin pages hide because PostgreSQL is the only usable per-user store. On a standard install it does nothing.#4665,#4656,#4668,#4654): separate features, out of scope for docs: server settings from environment variables #406.the settings from the environment are invalid (...)) and the exact storage-transition refusal text: one example error is enough.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.
Follow-ups
storage transitions require a maintenance window with only one write-capable API node). That belongs on Change storage later in its own PR..envindocker.md, the existing 10-sentence paragraph could be split into shorter paragraphs, and Optional Meilisearch could note that resettingENABLE_MEILISEARCHonly switches back to PostgreSQL whenSILO_SEARCH_PROVIDERisn't set explicitly.Risks
None identified. Documentation only.
Checklist
AI Disclosure
Note
Document server settings set through environment variables
Macroscope summarized 398699a.