Environment Variables¶
Torrentarr reads the configuration file path from a single environment variable. Section-level overrides (e.g. per-setting env vars) are not supported in Torrentarr; use config.toml for all other settings.
Config file path: TORRENTARR_CONFIG¶
Variable: TORRENTARR_CONFIG Purpose: Path to the config.toml file (or its directory, depending on deployment). Used by: All Torrentarr processes (Host, WebUI, Workers).
If set, this overrides the default config file search order. This is the only environment variable Torrentarr reads for configuration.
Examples:
# Full path to config file (e.g. Docker or custom path)
export TORRENTARR_CONFIG=/config/config.toml
# Windows (PowerShell)
$env:TORRENTARR_CONFIG = "C:\path\to\config\config.toml"
Docker:
services:
torrentarr:
image: feramance/torrentarr:latest
environment:
TORRENTARR_CONFIG: /config/config.toml
volumes:
- /path/to/config:/config
When TORRENTARR_CONFIG is set and starts with /config, Torrentarr uses /config as the base directory for the database (torrentarr.db) and logs. Otherwise it uses ./config (relative to the current working directory).
Config file search order (when TORRENTARR_CONFIG is not set)¶
~/config/config.toml~/.config/qbitrr/config.toml~/.config/torrentarr/config.toml./config.toml
The first existing file wins. If none exist, the default path used for generating a new config is ~/config/config.toml.
No section-level overrides¶
Torrentarr does not support environment variables that override individual config keys (e.g. QBITRR_SETTINGS_CONSOLE_LEVEL). That behavior exists in the original qBitrr (Python). In Torrentarr, all settings come from config.toml (and the single TORRENTARR_CONFIG for where that file is).
To change settings:
- Edit
config.tomldirectly, or - Use the WebUI Config Editor, or
- Mount a different
config.tomlin Docker and pointTORRENTARR_CONFIGat it.
Related documentation¶
- Configuration File — Full
config.tomlreference - Docker Installation — Docker setup
- qBittorrent Configuration — qBittorrent connection