Omnibus Docs

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, true or yes. OMNIBUS_SECURE_COOKIES is on unless set to 0, false or no.
  • 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:

SettingVariablesIn the appWhich wins
Library foldersEBOOK_LIBRARY_PATH, AUDIOBOOK_LIBRARY_PATHAdministration › SourcesThe variables. They overwrite the saved folders on every start.
Mail serverSMTP_*Administration › IntegrationsThe 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 keyHARDCOVER_API_KEY
Google Books keyGOOGLE_BOOKS_API_KEY
Calibre pathOMNIBUS_EBOOK_CONVERT_PATH
Public server URLOMNIBUS_PUBLIC_URLAdministration › General
Prowlarr API keyOMNIBUS_PROWLARR_API_KEYAdministration › IntegrationsThe app. The variable is used only while no key is saved, and is never copied in.
Book requests on or offOMNIBUS_BOOK_REQUESTSNoneOnly the variable.
Hosted MCP endpointNoneAdministration › IntegrationsOnly the app.

Server and network

PORT
The port the server listens on. Default 8080; the image sets 3000. In Docker, leave it alone and change the left side of ports: instead.
IP
The address the server listens on, as an IP address (localhost isn't accepted). Default 127.0.0.1; the image sets 0.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's Host header, which matters behind a proxy that rewrites Host. 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 0 only while you reach Omnibus over plain http:// at an address other than localhost. See HTTPS and reverse proxies.
OMNIBUS_TRUST_FORWARDED_FOR
Use the last address in the X-Forwarded-For header 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 /tmp is 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, /metrics answers 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 /books and /audiobooks.
DATABASE_URL
Where the SQLite database is. Default sqlite://omnibus.db?mode=rwc; the image sets sqlite:///config/omnibus.db?mode=rwc. mode=rwc creates 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, 4294967296 is 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: ffmpeg found on the PATH. 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: kepubify found on the PATH. 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-convert program. Default: ebook-convert found on the PATH. 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.

Email

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_SECURITY
starttls (the default) or tls for encryption from the first byte, usually on port 465. Any other value counts as starttls.
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 absolute http or https URL 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 to OMNIBUS_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, --username and --password options 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. info is quieter, warn quieter still.
OMNIBUS_LOG_DIR
Where the daily log files go. Default $OMNIBUS_DATA_DIR/logs, which is /cache/data/logs in 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 version by /api/_health. A build from source reports dev.
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_USER
username:password for 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.