aboutsummaryrefslogtreecommitdiffstats
path: root/docs
diff options
context:
space:
mode:
authorJP Dillingham <jp@dillingham.me>2022-07-31 12:38:52 -0500
committerGitHub <noreply@github.com>2022-07-31 12:38:52 -0500
commit0791bd27e6fc2986d8ad12b0bd7d797af92fc383 (patch)
tree58130b20f4220924d2a78d39897ccb1760de3b8f /docs
parent001a7c0f708de3d7374d9234e07a6ba477cfbc31 (diff)
parentc52557bb2630d87067a57e32434ee1596498f5c1 (diff)
downloadslskd-0791bd27e6fc2986d8ad12b0bd7d797af92fc383.tar.gz
Merge pull request #570 from slskd/search-response
Add the ability to filter incoming search requests
Diffstat (limited to 'docs')
-rw-r--r--docs/config.md14
1 files changed, 10 insertions, 4 deletions
diff --git a/docs/config.md b/docs/config.md
index 74d7b24d..2254c9e2 100644
--- a/docs/config.md
+++ b/docs/config.md
@@ -542,11 +542,14 @@ web:
A number of filters can be configured to control various aspects of how the application interacts with the Soulseek network.
-The share filters can be used to prevent certain types of files from being shared. This option is an array that can take any number of filters. Filters must be a valid regular expression; a few examples are included below and in the example configuration included with the application, but the list is empty by default.
+Share filters can be used to prevent certain types of files from being shared. This option is an array that can take any number of filters. Filters must be a valid regular expression; a few examples are included below and in the example configuration included with the application, but the list is empty by default.
-| Command Line | Environment Variable | Description |
-| ---------------- | -------------------- | -------------------------------------------------------------- |
-| `--share-filter` | `SHARE_FILTER` | A list of regular expressions used to filter files from shares |
+Search request filters can be used to discard incoming search requests that match one or more filters. Like share filters, this option is an array of regular expressions, and it defaults to an empty array (no request filtering is applied).
+
+| Command Line | Environment Variable | Description |
+| ------------------------- | ----------------------- | --------------------------------------------------------------------- |
+| `--share-filter` | `SHARE_FILTER` | A list of regular expressions used to filter files from shares |
+| `--search-request-filter` | `SEARCH_REQUEST_FILTER` | A list of regular expressions used to filter incoming search requests |
#### **YAML**
```yaml
@@ -555,6 +558,9 @@ filters:
- \.ini$
- Thumbs.db$
- \.DS_Store$
+ search:
+ request:
+ - ^.{1,2}$
```
# Integrations