aboutsummaryrefslogtreecommitdiffstats
path: root/docs
diff options
context:
space:
mode:
authorJP Dillingham <jpdillingham@gmail.com>2022-08-07 15:57:13 -0500
committerJP Dillingham <jpdillingham@gmail.com>2022-08-07 15:57:13 -0500
commit80ecb0d03cf1da83e33dde6326365713b3d605e0 (patch)
treedd8ea1392c4f61defc67b6436ee58be689b3991b /docs
parent9a51c7fcc0f7a0394b7c3e5cdc01322652743470 (diff)
parent25c4abfc9428272eed0936d17c8a310653b21111 (diff)
downloadslskd-80ecb0d03cf1da83e33dde6326365713b3d605e0.tar.gz
Merge remote-tracking branch 'origin/master' into transfers
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