aboutsummaryrefslogtreecommitdiffstats
path: root/docs
diff options
context:
space:
mode:
authorJP Dillingham <jpdillingham@gmail.com>2021-12-01 09:41:44 -0600
committerJP Dillingham <jpdillingham@gmail.com>2021-12-01 09:41:44 -0600
commit79ee2f069645a8af23079c4d1185e18614a9d08f (patch)
tree51764096f6bea4aeb3886e5de048772bdc47522e /docs
parent2c856e441c57623d5a4fa157a803b589416629e6 (diff)
downloadslskd-79ee2f069645a8af23079c4d1185e18614a9d08f.tar.gz
wip
Diffstat (limited to 'docs')
-rw-r--r--docs/config.md42
1 files changed, 40 insertions, 2 deletions
diff --git a/docs/config.md b/docs/config.md
index 83d9bc0c..2d775ace 100644
--- a/docs/config.md
+++ b/docs/config.md
@@ -54,10 +54,19 @@ Some options are backed by arrays or lists and allow multiple options to be set
# Remote Configuration
-The application contains APIs for retrieving and updating the YAML configuration file. By default, this option is enabled. Applications that will be run within untrusted networks, especially those where the application is internet-facing, should strongly consider disabling this option.
+The application contains APIs for retrieving and updating the YAML configuration file. By default, this option is disabled. Applications that will be run within untrusted networks, especially those where the application is internet-facing, should consider the risks of enabling this option.
If an attacker were to gain access to the application and retrieve the YAML file, any secrets contained within it will be exposed.
+|Command Line|Environment Variable|Description|
+|----|-----|-----------|
+|`--remote-configuration`|`REMOTE_CONFIGURATION`|Determines whether remote configuration of options is allowed|
+
+#### **YAML**
+```yaml
+remote_configuration: false
+```
+
# Application Directory Configuration
The application directory configuration option determines the location of the YAML file, the default locations of the download and incomplete directories, and the location of application working data, such as logs and SQLite databases.
@@ -72,8 +81,37 @@ Within the official Docker image, this value is set to `/app`.
## Incomplete and Downloads
+By default, incomplete and downloaded files are saved in `APP_DIR/incomplete` and `APP_DIR/downloads`, respectively. The application will create these directories on startup if they don't exist.
+
+Alternative locations can be specified for each directory. Directories must exist and must be writable by the application.
+
+|Command Line|Environment Variable|Description|
+|----|-----|-----------|
+|`-o\|--downloads`|`DOWNLOADS_DIR`|The path where downloaded files are saved|
+|`--incomplete`|`INCOMPLETE_DIR`|The path where incomplete downloads are saved|
+
+#### **YAML**
+```yaml
+directories:
+ incomplete: ~
+ downloads: ~
+```
+
## Shares
+
+
+|Command Line|Environment Variable|Description|
+|----|-----|-----------|
+|`-s\|--shared`|`SHARED_DIR`|The list of paths to shared files|
+
+#### **YAML**
+```yaml
+directories:
+ shared:
+ - ~
+```
+
# 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.
@@ -141,7 +179,7 @@ soulseek:
listen_port: 50000
```
-## Connection
+## Connection Options
### Timeouts