aboutsummaryrefslogtreecommitdiffstats
path: root/docs
diff options
context:
space:
mode:
authorJP Dillingham <jp@dillingham.me>2024-10-27 17:22:47 -0500
committerGitHub <noreply@github.com>2024-10-27 17:22:47 -0500
commit5ebb679f4f7a24649e5117931e06138a9375110f (patch)
treefc49ae05a9779e391e86c2d7b8c5c75581dc066e /docs
parentf9936f40d5d5ef5b09ee30e8837fe26341cc3830 (diff)
parent26f35babef42e31f9034d2fb7463316e7683569b (diff)
downloadslskd-5ebb679f4f7a24649e5117931e06138a9375110f.tar.gz
Merge pull request #1236 from slskd/filter-docs
Fix a copy/paste mistake in search filter documentation
Diffstat (limited to 'docs')
-rw-r--r--docs/config.md9
1 files changed, 6 insertions, 3 deletions
diff --git a/docs/config.md b/docs/config.md
index 4ff884da..6717dd5c 100644
--- a/docs/config.md
+++ b/docs/config.md
@@ -871,20 +871,23 @@ web:
A number of filters can be configured to control various aspects of how the application interacts with the Soulseek network.
-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.
+## Search Filters
+
+Search filters can be used to prevent certain types of search requests from being performed against your shares. 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.
Filter expressions are case insensitive by default.
| Command Line | Environment Variable | Description |
| ------------------------- | ----------------------- | --------------------------------------------------------------------- |
-| `--share-filter` | `SLSKD_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
filters:
search:
request:
- - ^.{1,2}$
+ - ^.{1,2}$ # discard any requests shorter than 3 characters
+ - ^(\.?pdf|\.?docx|\.?xlsx)$ # discard any requests that might be looking for sensitive documents
```
# Data Retention