From f29170569b8b563f75574f181af7b1f07f1c5e69 Mon Sep 17 00:00:00 2001 From: JP Dillingham Date: Sun, 30 Jan 2022 10:24:09 -0600 Subject: docs for global configuration --- docs/config.md | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) (limited to 'docs') diff --git a/docs/config.md b/docs/config.md index 47b4bf68..efc974a1 100644 --- a/docs/config.md +++ b/docs/config.md @@ -144,6 +144,32 @@ directories: - ~ ``` +# Limits and User Groups + +## Global + +Global limits behave as a hard limit, additive across all groups. These values should be set as high as practical for the environment in which the application is running; more granular controls should be defined at the group level. + +A change to slot limits require an application restart to take effect, while speed limits can be adjusted at runtime. + +|Command Line|Environment Variable|Description| +|----|-----|-----------| +|`--upload-slots`|`UPLOAD_SLOTS`|The limit for the total number of upload slots| +|`--upload-speed-limit`|`UPLOAD_SPEED_LIMIT`|The total upload speed limit| +|`--download-slots`|`DOWNLOAD_SLOTS`|The limit for the total number of download slots| +|`--download-speed-limit`|`DOWNLOAD_SPEED_LIMIT`|The total download speed limit| + +#### **YAML** +```yaml +global: + upload: + slots: 20 + speed_limit: 1000 + download: + slots: 500 + speed_limit: 1000 +``` + # Soulseek Configuration The Soulseek configuration determines how slskd will interact with the Soulseek network and underlying [Soulseek.NET](https://github.com/jpdillingham/Soulseek.NET) library. -- cgit v1.2.3