aboutsummaryrefslogtreecommitdiffstats
path: root/docs
diff options
context:
space:
mode:
authorJP Dillingham <jp@dillingham.me>2026-04-27 20:36:53 -0500
committerGitHub <noreply@github.com>2026-04-27 20:36:53 -0500
commit8c611f627b1859a1d9963388fb40f7dfeaeda652 (patch)
tree6564d337d0fe73a3c2f93b601e3e782e42f964c1 /docs
parentcb4d254099cf846f918214c2be07341d93d90900 (diff)
parent2b97e3ef7f65b57c3cbe2f3298aef4f856a47985 (diff)
downloadslskd-8c611f627b1859a1d9963388fb40f7dfeaeda652.tar.gz
Merge branch 'master' into docker-volume
Diffstat (limited to 'docs')
-rw-r--r--docs/config.md23
1 files changed, 22 insertions, 1 deletions
diff --git a/docs/config.md b/docs/config.md
index aac89f9a..14f1ae24 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,23 @@ 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.
@@ -491,6 +508,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.
@@ -501,6 +520,8 @@ groups:
blacklisted:
members:
- <username to blacklist>
+ patterns:
+ - <regular expression to match against usernames>
cidrs:
- <CIDR to blacklist, e.g. 255.255.255.255/32>
```