aboutsummaryrefslogtreecommitdiffstats
path: root/docs
diff options
context:
space:
mode:
authorJP Dillingham <jpdillingham@gmail.com>2022-07-31 12:30:52 -0500
committerJP Dillingham <jpdillingham@gmail.com>2022-07-31 12:30:52 -0500
commitc52557bb2630d87067a57e32434ee1596498f5c1 (patch)
tree58130b20f4220924d2a78d39897ccb1760de3b8f /docs
parent6884c594fe97c18f63cd1d4fe3227351df85c771 (diff)
downloadslskd-c52557bb2630d87067a57e32434ee1596498f5c1.tar.gz
docs for search request filters
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