Docs: Configuration
Configuration
The environment variables Redrive reads, where it keeps its data, and how to activate a license.
Redrive reads its settings from environment variables.
Settings
| Setting | Environment variable | Default |
|---|---|---|
| Port | REDRIVE_PORT |
8080 in the Docker image |
| Bind host | REDRIVE_HOST |
0.0.0.0 in the Docker image |
| Sign-in | REDRIVE_AUTH |
none |
| Data directory | REDRIVE_DATA_DIR |
per platform, listed below |
| Redrive batch limit | REDRIVE_REDRIVE_BATCH_LIMIT |
1000 |
| Redrive scan depth | REDRIVE_REDRIVE_SCAN_DEPTH |
1000 |
| Fault scan depth | REDRIVE_SCAN_MAX_DEPTH |
100000 |
| Fault scan time limit | REDRIVE_SCAN_TIME_LIMIT_MINUTES |
20 |
| Update check | REDRIVE_NO_UPDATE_CHECK=1 to disable |
on |
| Usage statistics | REDRIVE_NO_USAGE_STATS=1 to disable |
on |
| License key | REDRIVE_LICENSE_KEY |
unset |
Set REDRIVE_AUTH=users to turn on sign-in, which needs a Team license. See Turn on sign-in for more information.
The redrive limits and the fault scan limits are explained in Redriving.
Data directory
| Runs as | Location |
|---|---|
| Desktop app, Windows | %LOCALAPPDATA%\Redrive\data |
| Desktop app, Linux | ~/.local/share/Redrive/data |
| Desktop app, Mac | ~/Library/Application Support/Redrive/data |
| Server install | /data |
Set REDRIVE_DATA_DIR to change the default data directory location.
| In the data directory | What it is |
|---|---|
redrive.db |
The database. |
dataprotection-keys/ |
The keys that encrypt broker and feed credentials. In Docker the keys themselves aren’t encrypted, so limit who can read the volume. |
contracts/ |
The installed contract packages. |
logs/ |
One log file per day, the last seven kept. |
Update check
Redrive checks for updates occasionally. In Docker, you can set REDRIVE_NO_UPDATE_CHECK=1 to turn the update check off.
Usage statistics
Redrive sends anonymous usage statistics to help us improve the app by showing us which parts of it get used most often. They are on by default.
To turn them off, open Settings and switch off Usage statistics in the Privacy panel. In a server deployment, you can also set REDRIVE_NO_USAGE_STATS=1 before starting Redrive.
Your queue names, message contents, credentials and other sensitive data are never sent.
License activation
In the desktop app, enter your license key in Settings, in the License panel.
In a server install, set REDRIVE_LICENSE_KEY to your license key and restart Redrive.
See the privacy policy for more information on the activation process.