From 0a3b0e4ace3578f0db564d00f1bc806644b2c60c Mon Sep 17 00:00:00 2001 From: Nick Hawke Date: Wed, 9 Oct 2024 09:01:59 -0400 Subject: Fix search filter docs --- docs/config.md | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'docs') diff --git a/docs/config.md b/docs/config.md index ce1fe2b1..8b529ced 100644 --- a/docs/config.md +++ b/docs/config.md @@ -867,17 +867,15 @@ web: cidr: 0.0.0.0/0,::/0 ``` -# Filters +# Search Filters -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 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 -- cgit v1.2.3 From d387b851a62220bd4c7886178e6d8c24e8ec1ed4 Mon Sep 17 00:00:00 2001 From: JP Dillingham Date: Sun, 27 Oct 2024 17:08:12 -0500 Subject: tweak headings --- docs/config.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'docs') diff --git a/docs/config.md b/docs/config.md index 9615ef0e..d89be501 100644 --- a/docs/config.md +++ b/docs/config.md @@ -867,7 +867,9 @@ web: cidr: 0.0.0.0/0,::/0 ``` -# Search Filters +# Filters + +## 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. @@ -882,7 +884,7 @@ Filter expressions are case insensitive by default. filters: search: request: - - ^.{1,2}$ + - ^.{1,2}$ # discard any requests shorter than 3 characters ``` # Data Retention -- cgit v1.2.3 From aeb0ab62473e7be764c7d833cfef5f25658a5d3d Mon Sep 17 00:00:00 2001 From: JP Dillingham Date: Sun, 27 Oct 2024 17:13:37 -0500 Subject: tweak --- docs/config.md | 2 ++ 1 file changed, 2 insertions(+) (limited to 'docs') diff --git a/docs/config.md b/docs/config.md index d89be501..384202a4 100644 --- a/docs/config.md +++ b/docs/config.md @@ -869,6 +869,8 @@ web: # Filters +A number of filters can be configured to control various aspects of how the application interacts with the Soulseek network. + ## 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. -- cgit v1.2.3 From 26f35babef42e31f9034d2fb7463316e7683569b Mon Sep 17 00:00:00 2001 From: JP Dillingham Date: Sun, 27 Oct 2024 17:18:34 -0500 Subject: add another example --- docs/config.md | 1 + 1 file changed, 1 insertion(+) (limited to 'docs') diff --git a/docs/config.md b/docs/config.md index 384202a4..6717dd5c 100644 --- a/docs/config.md +++ b/docs/config.md @@ -887,6 +887,7 @@ filters: search: request: - ^.{1,2}$ # discard any requests shorter than 3 characters + - ^(\.?pdf|\.?docx|\.?xlsx)$ # discard any requests that might be looking for sensitive documents ``` # Data Retention -- cgit v1.2.3