From 7033851e42d1412c34c4022f6a8dd1632c64586e Mon Sep 17 00:00:00 2001 From: ofernander Date: Sun, 12 Apr 2026 18:40:01 -0700 Subject: feat: add username reg pattern matching to blacklist group Adds a field to that accepts a list of regular expressions matched against usernames. --- docs/config.md | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'docs') diff --git a/docs/config.md b/docs/config.md index 6ba449f0..1b77a674 100644 --- a/docs/config.md +++ b/docs/config.md @@ -489,6 +489,8 @@ Private and chat room messages from blacklisted users are also ignored. Users can be blacklisted by adding their username to the `members` list. Additionally, users can be blacklisted by IP address, or range of addresses by adding a CIDR entry to the `cidrs` list. +The `patterns` list accepts regular expressions matched against usernames. Any username matching one or more patterns will be blacklisted. This is useful for blocking bots or automated clients that share a common username prefix or suffix — for example, `^user` would block any username starting with `user`, and `_bot$` would block any username ending with `_bot`. Patterns follow the same case sensitivity rules as other user-defined regular expressions in the application — case insensitive by default, controlled by the `flags.case_sensitive_regex` option. + Users added to the blacklist will be blocked from enqueueing any new files. Any existing active or queued transfers will need to be cancelled manually. A managed blacklist file may also be used to achieve the same effects. Read more about this in the [Managed Blacklist](#managed-blacklist) section below. @@ -499,6 +501,8 @@ groups: blacklisted: members: - + patterns: + - cidrs: - ``` -- cgit v1.2.3 From 8fa61f8714af038ba7c5dc7b61449ac8c5aaab24 Mon Sep 17 00:00:00 2001 From: JP Dillingham Date: Fri, 24 Apr 2026 17:24:26 -0500 Subject: docs for retries --- docs/config.md | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) (limited to 'docs') diff --git a/docs/config.md b/docs/config.md index b4e8fa47..957bcb88 100644 --- a/docs/config.md +++ b/docs/config.md @@ -332,7 +332,7 @@ relay: downloads: false ``` -# Limits and User Groups +# Transfer Behavior, Limits, and User Groups ## Global Slot and Speed Limits @@ -358,6 +358,24 @@ transfers: speed_limit: 1000 ``` +## Retry Behavior + +Failed downloads can be retried automatically up to the configured number of attempts. If an attempt fails initially, the application delays the second attempt by the configured delay, and an exponential backoff is used to compute the delay for all subsequent events, up to the configured maximum delay. + +By default, partial downloads are resumed based on the size of the incomplete file. Users can choose to always overwrite files if they wish. + +**YAML** +```yaml +transfers: + download: + retry: + incomplete: resume # 'overwrite' or 'resume' + attempts: 3 + delay: 5000 # initial time between retries, in milliseconds + max_delay: 60000 # maximum time between retries, in milliseconds +``` + + ## Global Upload Limits Global upload limits define the number of queued, daily, and weekly uploads on a _per user_ basis. These limits behave as defaults and are applied if limits for a user's group have not been set. -- cgit v1.2.3 From 46966b6e284a9ef8bb3d182928bf9211118681e8 Mon Sep 17 00:00:00 2001 From: JP Dillingham Date: Fri, 24 Apr 2026 18:48:48 -0500 Subject: extra space --- docs/config.md | 1 - 1 file changed, 1 deletion(-) (limited to 'docs') diff --git a/docs/config.md b/docs/config.md index 957bcb88..14f1ae24 100644 --- a/docs/config.md +++ b/docs/config.md @@ -375,7 +375,6 @@ transfers: max_delay: 60000 # maximum time between retries, in milliseconds ``` - ## Global Upload Limits Global upload limits define the number of queued, daily, and weekly uploads on a _per user_ basis. These limits behave as defaults and are applied if limits for a user's group have not been set. -- cgit v1.2.3