Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Configuration Reference

Configuration is loaded from environment variables with the prefix BOOKBOSS and __ as the separator (e.g. BOOKBOSS__DATABASE__DATABASE_URL).

Secrets are stored in an encrypted config.sops.env file managed by sops. Run just config to edit it.

Database

VariableDescriptionDefault
BOOKBOSS__DATABASE__DATABASE_URLDatabase connection string (required)

See Database Configuration for connection string formats and examples.

Encryption

VariableDescriptionDefault
BOOKBOSS__ENCRYPTION_SECRETEncryption key for sensitive data (OPDS passwords) (required)

Frontend

VariableDescriptionDefault
BOOKBOSS__FRONTEND__LISTEN_IPIP address the web server listens on0.0.0.0
BOOKBOSS__FRONTEND__LISTEN_PORTPort the web server listens on8080
BOOKBOSS__FRONTEND__BASE_URLPublic-facing base URL (used for Kobo sync URLs)http://0.0.0.0:8080

Library

VariableDescriptionDefault
BOOKBOSS__LIBRARY__LIBRARY_PATHPath where approved book files are stored (required)

Import

VariableDescriptionDefault
BOOKBOSS__IMPORT__BOOKDROP_PATHDirectory to watch for new e-book files (required)
BOOKBOSS__IMPORT__SCAN_INTERVAL_SECSHow often (seconds) to scan the bookdrop directory60
BOOKBOSS__IMPORT__WORKER_POLL_INTERVAL_SECSHow often (seconds) the import worker polls for jobs5

Metadata Providers

VariableDescriptionDefault
BOOKBOSS__METADATA__HARDCOVER_API_TOKENAPI token for Hardcover (primary metadata provider)
BOOKBOSS__METADATA__GOOGLEBOOKS_API_TOKENAPI token for Google Books

Open Library does not require an API token.

Providers are queried in parallel. The best match is selected by title+author similarity scoring.

API (gRPC)

VariableDescriptionDefault
BOOKBOSS__API__GRPC_LISTEN_IPIP address the gRPC server listens on0.0.0.0
BOOKBOSS__API__GRPC_LISTEN_PORTPort the gRPC server listens on8081

Database Admin (just commands)

These variables are used by just create-database and just database, not by BookBoss itself:

VariableUsed by
PGUSERjust create-database, just database
PGPASSWORDjust create-database, just database
PGDATABASEjust create-database, just database
PGADMINUSERjust create-database
PGADMINPASSWORDjust create-database