diff --git a/README.md b/README.md index 1d58845..ba05084 100644 --- a/README.md +++ b/README.md @@ -60,9 +60,9 @@ gem install --no-document mdl mdl docs ``` -Seriously, run mdl before commititng. +Seriously, run mdl before committing. -## Codespell +## Codespell Linter ```shell brew install codespell diff --git a/docs/install/configuration.md b/docs/install/configuration.md index 2d7269a..e6c8b11 100644 --- a/docs/install/configuration.md +++ b/docs/install/configuration.md @@ -40,7 +40,7 @@ api_key = "32morecharacters" - Same example using env variables. -``` +```shell UN_RADARR_0_URL=http://radarr UN_RADARR_0_API_KEY=32characters UN_RADARR_1_URL=http://radarr4k @@ -68,12 +68,32 @@ UN_RADARR_1_API_KEY=32morecharacters |passwords|`UN_PASSWORD_0`|No default; empty list. Provide a list of RAR passwords to try.| |folders.interval|`UN_FOLDERS_INTERVAL`|`1s` / How often poller (if enabled) checks for new folders.| -:::info Passwords +## Secrets and Passwords + If a wrong password is provided, the entire archive must be read before we know it's a bad password. Providing many passwords here can drastically slow down extractions and cause extra disk IO. You may also specify -a password file by providing a "password" in this format: `filepath:/path/to/passwords.txt` +a password file by providing a "password" in this format: `filepath:/path/to/passwords.txt`. +The file must contain 1 password per line. + +:::info Other Secrets +You may store any string parameter (except time intervals) into a separate file +by setting the value to `filepath:/path/to/file.txt`. In other words, if you want +your Radarr API key to be read from a separate file, instead of storing it directly +in the config file or environment variables you can do this: +```toml +[[radarr]] + url = "https://some.url/radarr" + api_key = "filepath:/etc/secrets/radarr.txt" +``` + +or: +```shell +UN_RADARR_0_API_KEY=filepath:/etc/secrets/radarr.txt +``` + +Then store the API key (and only the API key) in `/etc/secrets/radarr.txt`. ::: ## Webserver @@ -161,7 +181,6 @@ It provides no UI. This may change in the future. The web server was added in v0 |whisparr.delete_delay|`UN_WHISPARR_0_DELETE_DELAY`|`5m` / Extracts are deleted this long after import, `-1s` to disable| |whisparr.syncthing|`UN_WHISPARR_0_SYNCTHING`|`false` / Setting this to true makes unpackerr wait for syncthing to finish| - ## Folder Folders are a way to watch a folder for things to extract. You can use this to