Server Config
Stump will use default options if you don't manually configure them. When following this guide, keep in mind you only need to provide values for things you wish to override
There are a number of configuration options that you can set to customize Stump's behavior. You will be setting these options in the Stump.toml file, located within your configured config directory, but you can also set them as environment variables.
If you're using Stump with Docker, you'll want to specify environment variables in either the docker run or docker-compose.yml file to override the default configuration. See the Docker guide for more information.
Below are the available configuration options, loosely grouped by category. If you encounter any values which are not documented, please open an issue or submit a pull request to add them to the documentation.
Core
STUMP_PORT
The port for the Stump server.
| Type | Default Value | TOML Key |
|---|---|---|
| Integer | 10801 | port |
STUMP_CONFIG_DIR
The directory where Stump will look for its configuration file.
| Type | Default Value | TOML Key |
|---|---|---|
| String | ~/.stump | config_dir |
STUMP_CLIENT_DIR
The directory the contains the web bundle for the web UI
| Type | Default Value | TOML Key |
|---|---|---|
| String | ./dist | client_dir |
STUMP_DB_PATH
Overrides the path where Stump stores its database file. By default this path is same as parent directory of STUMP_CONFIG_DIR. If set the database would be put at STUMP_DB_PATH/stump.db.
| Type | Default Value | TOML Key |
|---|---|---|
| String | db_path |
STUMP_ALLOWED_ORIGINS
A comma-delineated list of allowed origins for the Stump API. If you're trying to access the API from a different domain, you'll need to add it to this list. By default, origins corresponding to the Tauri desktop application are allowed, and the host machine's IP address with the configured port is allowed for both HTTP and HTTPS.
| Type | Default Value | TOML Key |
|---|---|---|
| String | "tauri://localhost","https://tauri.localhost","http(s)://{machine_ip}:{configured_port}" | allowed_origins |
Stored as a valid array in the configuration file.
Be sure to replace {machine_ip} and {configured_port} with the appropriate values for your environment.
STUMP_TRUST_PROXY_HEADERS
Whether or not to trust proxy headers like X-Forwarded-For and X-Real-IP for determining the client's IP address. This should only be set to true if Stump is running behind a reverse proxy that is properly configured to set these headers, since it increases the risk of IP spoofing.
| Type | Default Value | TOML Key |
|---|---|---|
| Boolean | false | trust_proxy_headers |
Logging
STUMP_VERBOSITY
The verbosity level for Stump logs. Verbosity levels are integers that correspond to a list of log levels that will be visible, and are inclusive of all the levels below them.
For example, if you set the verbosity level to 1, you will see INFO, WARN, and ERROR messages. If you set the verbosity level to 2, you will see DEBUG, INFO, WARN, and ERROR messages, and so on. The default verbosity level is 1.
You may turn off logging entirely by setting the verbosity level to 0. However, this is not recommended, as it will make it difficult to debug issues with Stump if they arise. I generally recommend setting the verbosity to 1, as it allows you to see info-level messages, warnings, and errors.
The available verbosity levels are:
| Option | Visible Log Levels |
|---|---|
0 | NONE |
1 | INFO, WARN, ERROR |
2 | DEBUG, INFO, WARN, ERROR |
3 | TRACE, DEBUG, INFO, WARN, ERROR |
| Type | Default Value | TOML Key |
|---|---|---|
| Integer | 1 | verbosity |
STUMP_PRETTY_LOGS
Controls whether logs are formatted in a human-friendly, pretty-printed style.
| Type | Default Value | TOML Key |
|---|---|---|
| Boolean | true | pretty_logs |
Authentication & Sessions
HASH_COST
Controls the computational cost used when hashing user passwords.
| Type | Default Value | TOML Key |
|---|---|---|
| Integer | 12 | password_hash_cost |
SESSION_TTL
The time-to-live for session cookies. This is the amount of time that a session cookie will be valid for in seconds. The default value is 259200, or 3 days. You can set this to a different value if you want sessions to expire sooner or later, depending on your needs.
| Type | Default Value | TOML Key |
|---|---|---|
| Integer | 259200 | session_ttl |
SESSION_EXPIRY_CLEANUP_INTERVAL
The time (in seconds) between each session expiry cleanup check. The check will remove any expired sessions from the database.
| Type | Default Value | TOML Key |
|---|---|---|
| Integer | 60 | expired_session_cleanup_interval |
OpenID Connect (OIDC)
In Stump.toml, all keys are nested under an [oidc] table. For example:
port = 10801
# other non-OIDC config...
[oidc] # start of OIDC config
enabled = true
issuer_url = "https://example.com"
# other OIDC config...STUMP_OIDC_ENABLED
Whether or not to enable OpenID Connect (OIDC) authentication. When enabled, users can sign in using an external identity provider. See the OIDC guide for more information.
| Type | Default Value | TOML Key |
|---|---|---|
| Boolean | false | [oidc].enabled |
STUMP_OIDC_ISSUER_URL
The base URL of your OIDC provider. This should be the URL where the provider's .well-known/openid-configuration endpoint can be found.
Required when STUMP_OIDC_ENABLED is true.
| Type | Default Value | TOML Key |
|---|---|---|
| String | N/A | [oidc].issuer_url |
Example: https://pocketid.stump.mycloud
STUMP_OIDC_CLIENT_ID
The client ID provided by your OIDC provider for the Stump application
Required when STUMP_OIDC_ENABLED is true.
| Type | Default Value | TOML Key |
|---|---|---|
| String | N/A | [oidc].client_id |
STUMP_OIDC_CLIENT_SECRET
The client secret provided by your OIDC provider for the Stump application
Required when STUMP_OIDC_ENABLED is true.
| Type | Default Value | TOML Key |
|---|---|---|
| String | N/A | [oidc].client_secret |
STUMP_OIDC_SCOPES
A comma-separated list of additional scopes to request from the OIDC provider
| Type | Default Value | TOML Key |
|---|---|---|
| String | openid,email,profile | [oidc].scopes |
STUMP_OIDC_ALLOW_REGISTRATION
Whether or not to allow automatic user registration via OIDC on first login. When enabled, users who sign in with OIDC for the first time will have an account automatically created for them.
| Type | Default Value | TOML Key |
|---|---|---|
| Boolean | true | [oidc].allow_registration |
STUMP_OIDC_DISABLE_LOCAL_AUTH
Whether or not to disable local username/password authentication when OIDC is enabled. When set to true, the username/password login form will be hidden and only OIDC authentication will be available.
Note: Some features, such as OPDS feeds, still require username/password authentication even when this is enabled.
| Type | Default Value | TOML Key |
|---|---|---|
| Boolean | false | [oidc].disable_local_auth |
STUMP_OIDC_EXTRA_AUDIENCES
A comma-separated list of additional trusted audiences for ID token verification. This is required when using providers like Zitadel that inject extra values (e.g. the project ID) into the JWT aud claim. See the OIDC guide for more information.
| Type | Default Value | TOML Key |
|---|---|---|
| String | N/A | [oidc].extra_audiences |
Example: 360960386461073457,another-audience
Integrations
ENABLE_KOBO_SYNC
Whether or not to enable the Kobo sync integration. To learn more about this integration, visit the Kobo guide.
| Type | Default Value | TOML Key |
|---|---|---|
| Boolean | false | enable_kobo_sync |
ENABLE_KOREADER_SYNC
Whether or not to enable the KoReader sync integration. This is a special integration that allows KoReader to sync with Stump. To learn more about this integration, visit the KoReader guide.
| Type | Default Value | TOML Key |
|---|---|---|
| Boolean | false | enable_koreader_sync |
ENABLE_OPDS_PROGRESSION
Whether or not OPDS page access should automatically track reading progression. When disabled, accessing pages via OPDS won't update reading progress, which prevents inaccurate tracking when clients preload or cache multiple pages at once. This is particularly useful for OPDS clients that load more than one page at a time.
| Type | Default Value | TOML Key |
|---|---|---|
| Boolean | false | enable_opds_progression |
PDF Rendering
PDFIUM_PATH
The path to the PDFium binary. This is only required if you want PDF support and you're running Stump outside of Docker, since the PDFium binary is included in the Docker image. You'll want to find and download the PDFium binary for your platform from here, and then set this environment variable to the path of the binary.
| Type | Default Value | TOML Key |
|---|---|---|
| String | /lib/libpdfium.so in Docker | pdfium_path |
STUMP_PDF_CACHE_PAGES
Controls whether rendered PDF pages are cached.
| Type | Default Value | TOML Key |
|---|---|---|
| Boolean | true | pdf_cache_pages |
STUMP_PDF_HIGH_QUALITY
Enables higher-quality PDF rendering at the cost of increased resource usage.
| Type | Default Value | TOML Key |
|---|---|---|
| Boolean | true | pdf_high_quality |
STUMP_PDF_MAX_DIMENSION
Controls the maximum width or height (in pixels) for rendered PDF images.
| Type | Default Value | TOML Key |
|---|---|---|
| Integer | 1200 | pdf_max_dimension |
STUMP_PDF_PRERENDER_RANGE
Controls how many pages before and after the current page should be pre-rendered.
| Type | Default Value | TOML Key |
|---|---|---|
| Integer | 5 | pdf_prerender_range |
STUMP_PDF_RENDER_DPI
Sets the DPI (dots per inch) used when rendering PDF pages. High values increases image clarity at the cost of memory usage and render time.
| Type | Default Value | TOML Key |
|---|---|---|
| Integer | 150 | pdf_render_dpi |
STUMP_PDF_RENDER_FORMAT
Specifies the images format used when rendering PDF pages.
| Type | Default Value | TOML Key |
|---|---|---|
| String | webp | pdf_render_format |
File Uploads
STUMP_ENABLE_UPLOAD
| Type | Default Value | TOML Key |
|---|---|---|
| Boolean | false | enable_upload |
STUMP_MAX_FILE_UPLOAD_SIZE
The maximum allowed size, in bytes, of files uploaded via the upload interface. This configuration variable will have no effect unless ENABLE_UPLOAD is true.
| Type | Default Value | TOML Key |
|---|---|---|
| Integer | 20971520 (20 MB) | max_file_upload_size |
STUMP_MAX_IMAGE_UPLOAD_SIZE
The maximum size, in bytes, for images uploaded as thumbnails for users, libraries, series, or media.
| Type | Default Value | TOML Key |
|---|---|---|
| Integer | 20971520 (20 MB) | max_image_upload_size |
Performance
STUMP_MAX_SCANNER_CONCURRENCY
The maximum number of files which may be processed concurrently by the scanner. This is useful for limiting the number of files that are processed at once, which can help prevent the server from becoming overwhelmed on systems with limited resources.
Note: The OS thread scheduler should prevent overload, however, you may want to set this value lower if you're running Stump on a system with limited resources.
| Type | Default Value | TOML Key |
|---|---|---|
| Integer | 200 | max_scanner_concurrency |
STUMP_MAX_THUMBNAIL_CONCURRENCY
The maximum number of images which may be generated concurrently by the thumbnailer. This is useful for limiting the number of thumbnails that are generated at once, which can help prevent the server from becoming overwhelmed on systems with limited resources.
Note: Thumbnail generation is a CPU-intensive process, so you may want to set this value lower if you're running Stump on a system with limited resources.
| Type | Default Value | TOML Key |
|---|---|---|
| Integer | 50 | max_thumbnail_concurrency |
STUMP_BOOK_COMPLETION_DEDUP_TIMEOUT_SECS
The number of seconds after which a book can be re-completed.
| Type | Default Value | TOML Key |
|---|---|---|
| Integer | 86400 (1 day) | book_completion_dedup_timeout_secs |
Developer / Advanced
STUMP_ENABLE_PLAYGROUND
Whether or not to enable the GraphQL playground. The playground is an interactive in-browser IDE for exploring the Stump GraphQL API. It is always enabled in development builds.
| Type | Default Value | TOML Key |
|---|---|---|
| Boolean | false | enable_playground |
API_VERSION
The version of the Stump API to use. This should really be left alone and not manually set.
| Type | Default Value | TOML Key |
|---|---|---|
| Integer | 1 | api_version |
STUMP_PROFILE
The profile to use when running Stump. This should really be left alone and not manually set.
| Type | Default Value | TOML Key |
|---|---|---|
| String | release | profile |