Docs › Administration
Configuration reference
Every environment variable the Omnibus server reads, with what it does and its default. Most installs need only the handful Install with Docker covers; the rest are here for when you need them.
Setting a variable
With Docker Compose, add the variable to the environment: block of the omnibus service, then run docker compose up -d. That recreates the container with the new value; docker compose restart alone keeps the old one.
environment:
OMNIBUS_TRUST_FORWARDED_FOR: "1"
OMNIBUS_MAX_UPLOAD_BYTES: "4294967296"
- On and off. Switches turn on with
1,trueoryes.OMNIBUS_SECURE_COOKIESis on unless set to0,falseorno. - Sizes are in bytes, and timeouts in seconds.
- Paths are paths inside the container. Make them absolute.
- A running container keeps the values it started with, so a change needs the container recreated.
Where this page gives two defaults, the first is the server's own and the second is what the Docker image sets.
When the app has the same setting
Some settings can be made in the app as well. Which one wins depends on the setting:
| Setting | Variables | In the app | Which wins |
|---|---|---|---|
| Library folders | EBOOK_LIBRARY_PATH, AUDIOBOOK_LIBRARY_PATH | Administration › Sources | The variables. They overwrite the saved folders on every start. |
| Mail server | SMTP_* | Administration › Integrations | The app. When nothing is saved, the variable's value is copied in at start, and from then on changes in the app stick. Clearing the saved value falls back to the variable, and the next start copies it in again. |
| Hardcover key | HARDCOVER_API_KEY | ||
| Google Books key | GOOGLE_BOOKS_API_KEY | ||
| Calibre path | OMNIBUS_EBOOK_CONVERT_PATH | ||
| Public server URL | OMNIBUS_PUBLIC_URL | Administration › General | |
| Prowlarr API key | OMNIBUS_PROWLARR_API_KEY | Administration › Integrations | The app. The variable is used only while no key is saved, and is never copied in. |
| Book requests on or off | OMNIBUS_BOOK_REQUESTS | None | Only the variable. |
| Hosted MCP endpoint | None | Administration › Integrations | Only the app. |
Server and network
PORT- The port the server listens on. Default
8080; the image sets3000. In Docker, leave it alone and change the left side ofports:instead. IP- The address the server listens on, as an IP address (
localhostisn't accepted). Default127.0.0.1; the image sets0.0.0.0. A value that doesn't parse logs a warning and falls back to the default. PUID,PGID- Docker image only. The user and group the server runs as, so the files it writes are owned by you. Default
1000. OMNIBUS_PUBLIC_ORIGIN- The address people open Omnibus at, scheme and port included, such as
https://books.example.com; separate several with commas. Changes a signed-in browser sends are refused with a 403 unless the page's address is listed here or matches the request'sHostheader, which matters behind a proxy that rewritesHost. Links Omnibus builds itself, such as a Kobo's download links, also take their scheme and port from it. Not set by default. OMNIBUS_SECURE_COOKIES- Marks the sign-in cookie secure, so browsers send it only over HTTPS. On by default. Set
0only while you reach Omnibus over plainhttp://at an address other thanlocalhost. See HTTPS and reverse proxies. OMNIBUS_TRUST_FORWARDED_FOR- Use the last address in the
X-Forwarded-Forheader as the client's address, for rate limits and the request log. Off by default. Turn it on only behind exactly one reverse proxy that sets the header and that every request goes through; on a server people reach directly it lets anyone dodge the sign-in limit. See HTTPS and reverse proxies. TMPDIR- A standard variable rather than an Omnibus one: the folder uploads are staged in before they're filed. Default
/tmp. Point it at a volume with room for your largest upload if/tmpis small.
Security and sign-in
OMNIBUS_INITIAL_ADMIN- A username to make an admin as the server starts, for getting admin rights back. It does nothing if no account has that name, and it acts on every start while set, so remove it straight after use. See Getting admin rights back.
OMNIBUS_METRICS_TOKEN- The token Prometheus must send to read
/metrics. Not set by default, and while it isn't,/metricsanswers 404. See Health, logs and metrics.
Libraries and storage
EBOOK_LIBRARY_PATH,AUDIOBOOK_LIBRARY_PATH- The ebook and audiobook library folders, as the container sees them. When either is set, both are written to the settings on every start, so set both or neither: setting one alone clears the other folder, and Omnibus then treats that library as removed. Remove both to manage the folders in Administration › Sources (see Library sources). Not set by default; the install guide sets
/booksand/audiobooks. DATABASE_URL- Where the SQLite database is. Default
sqlite://omnibus.db?mode=rwc; the image setssqlite:///config/omnibus.db?mode=rwc.mode=rwccreates the file if it's missing. OMNIBUS_COVERS_DIR- Where cover images are kept. Default
./covers; the image sets/config/covers. Back it up. OMNIBUS_JOURNAL_IMAGES_DIR- Where images in journal entries are kept. Default
$OMNIBUS_DATA_DIR/journal-images; the image sets/config/journal-images. Back it up. OMNIBUS_DATA_DIR- The base folder for caches and logs: audiobook transcodes, KEPUB and converted copies, rebuilt EPUBs and log files each go in a folder under it unless their own variable says otherwise. Default
./data; the image sets/cache/data. OMNIBUS_THUMBS_DIR- Where cover thumbnails are cached. Default
./thumbs; the image sets/cache/thumbs. OMNIBUS_THUMBS_CAP_BYTES- How big the thumbnail cache may grow before the least recently used thumbnails are deleted. Default 1 GiB (
1073741824). A library of 1,600 books uses about 50 MB. OMNIBUS_MAX_UPLOAD_BYTES- The largest book or audiobook someone can upload from the app; larger files are refused. Not set by default, which means no limit. For example,
4294967296is 4 GiB. OMNIBUS_PDF_PARSE_MAX_BYTES- The largest PDF Omnibus will open to read. A bigger PDF is still listed, but only by its file name, with no cover, page count or text. Default 512 MiB (
536870912). OMNIBUS_PDF_TEXT_MAX_BYTES- The largest PDF Omnibus reads the text of, for full-text search, the chapter list and the word count. A bigger PDF keeps its cover, metadata and page count. Default 128 MiB (
134217728).
Audiobook streaming
OMNIBUS_FFMPEG_PATH- The ffmpeg program used to prepare audiobooks for streaming. Default:
ffmpegfound on thePATH. The image includes it. OMNIBUS_HLS_CAP_BYTES- How big the audiobook streaming cache may grow before old entries are deleted. It lives in
$OMNIBUS_DATA_DIR/hls. Default 5 GiB (5368709120). OMNIBUS_HLS_TRANSCODE_TIMEOUT_SECS- How long ffmpeg may spend preparing one audiobook before Omnibus stops it. Default
1800(30 minutes). Raise it for very long audiobooks on slow hardware.
Devices and downloads
OMNIBUS_KEPUBIFY_PATH- The kepubify program that turns an EPUB into the KEPUB a Kobo reads best. Default:
kepubifyfound on thePATH. The image includes it. Without it, Kobo downloads fall back to plain EPUB and the server logs one warning at start. OMNIBUS_KEPUB_DIR- Where converted KEPUBs are cached. Default
$OMNIBUS_DATA_DIR/kepub. Safe to delete. OMNIBUS_EXPORT_EPUB_DIR- Where Omnibus caches EPUBs rebuilt with your metadata edits and covers, which is what downloads and Kobo sync send for an edited book. Default
$OMNIBUS_DATA_DIR/export-epub. Safe to delete. OMNIBUS_EXPORT_EPUB_CAP_BYTES- How big that cache may grow before the oldest files are deleted. Default 5 GiB (
5368709120).
Kobo sync also reads OMNIBUS_PUBLIC_ORIGIN; see Server and network. Send to Kindle uses the mail server.
Calibre conversion
OMNIBUS_EBOOK_CONVERT_PATH- Calibre's
ebook-convertprogram. Default:ebook-convertfound on thePATH. Calibre isn't in the image; Integrations shows how to add it. Without it, conversion is off and the server logs one warning at start. The app wins: a path saved under Administration › Integrations takes precedence. OMNIBUS_CONVERT_DIR- Where converted files are cached. Default
$OMNIBUS_DATA_DIR/convert. Safe to delete. OMNIBUS_CONVERT_TIMEOUT_SECS- How long one conversion may run before Omnibus stops it. Default
600(10 minutes).
Metadata providers
Both keys are server-wide and the app wins; see Integrations.
HARDCOVER_API_KEY- A Hardcover API token. Turns on "Readers also enjoyed" suggestions, makes Hardcover the first source for book summaries, and adds it as the last try for ISBN lookups. Not set by default.
GOOGLE_BOOKS_API_KEY- A Google Books API key, so ISBN and title lookups don't run into the shared anonymous quota. With a key, ISBN lookups ask Google Books first; without one, Open Library. Not set by default.
The mail server Send to Kindle sends through. The app wins; see Integrations. SMTP_HOST and SMTP_FROM_EMAIL are both needed for the rest to count.
SMTP_HOST- The outgoing mail server, such as
smtp.example.com. SMTP_PORT- Default
587. SMTP_SECURITYstarttls(the default) ortlsfor encryption from the first byte, usually on port 465. Any other value counts asstarttls.SMTP_USERNAME,SMTP_PASSWORD- The mail server login. Leave both unset for a relay that needs none.
SMTP_FROM_EMAIL- The address books are sent from.
Notifications
OMNIBUS_PUBLIC_URL- The address readers reach Omnibus at, used for links in notifications and for reviews shared by link, such as
https://books.example.com. An absolutehttporhttpsURL with no username, password, query or fragment; an address it can't accept is skipped with a warning. The app wins; see Server address and sharing. Unrelated toOMNIBUS_PUBLIC_ORIGIN.
Book requests
OMNIBUS_BOOK_REQUESTS- Turns on book requests. Off by default, and while it's off every request control and setting is hidden. Only the variable turns it on.
OMNIBUS_PROWLARR_API_KEY- The Prowlarr API key, used only while none is saved under Administration › Integrations › Book requests. Never copied into the settings, so removing the variable removes the key. Needs
OMNIBUS_BOOK_REQUESTS.
MCP
The hosted MCP endpoint has no variable; an admin turns it on under Administration › Integrations. These three are read by the separate omnibus-mcp program you can run on your own computer, not by the server. See MCP server.
OMNIBUS_MCP_URL- The Omnibus address to connect to, such as
https://books.example.com. OMNIBUS_MCP_USERNAME,OMNIBUS_MCP_PASSWORD- The account it signs in as. It keeps the password so it can sign in again on its own after a week unused. The account's permissions limit what it can do. The
--url,--usernameand--passwordoptions win over these.
Logging
RUST_LOG- How much the server logs, to its output and to the log files alike. Default
info,omnibus=debug: one line per request plus the server's own events, with extra detail from Omnibus itself.infois quieter,warnquieter still. OMNIBUS_LOG_DIR- Where the daily log files go. Default
$OMNIBUS_DATA_DIR/logs, which is/cache/data/logsin the image. See Health, logs and metrics.
Set by the image
The Docker image sets these itself. You don't need to touch them.
OMNIBUS_VERSION- The release the image was built from, reported as
versionby/api/_health. A build from source reportsdev. OMNIBUS_REACT_DIR- The folder holding the web app's files; the image uses
/app/react. Without it the API still answers but the web app doesn't load. OMNIBUS_REACT- No longer used and ignored. Remove it from older compose files whenever you like.
Development only
These two exist for people working on Omnibus. The Docker image, like any release build, ignores them and logs a warning if they're set.
OMNIBUS_DEV_SEED_USERusername:passwordfor an admin account a development server creates as it starts.OMNIBUS_DEV_DISABLE_RATE_LIMITS- Turns off the per-address rate limits on a development server.
The repository's .env.example lists every variable, including the ones only the project's own development tools read.