aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--README.md40
-rw-r--r--src/slskd/Options.cs16
2 files changed, 47 insertions, 9 deletions
diff --git a/README.md b/README.md
index 97235555..9334f200 100644
--- a/README.md
+++ b/README.md
@@ -1 +1,39 @@
-# slskd \ No newline at end of file
+# slskd
+
+slskd is a modern client-server application for the Soulseek file sharing network.
+
+## Quick Start
+
+```
+docker run -d \
+ -p 5000:5000 \
+ -p 5001:5001 \
+ -v <path/to/downloads>:/var/slskd/downloads \
+ -v <path/to/shared>:/var/slsd/shared \
+ -e "SLSKD_SLSK_USERNAME=<Soulseek username>" \
+ -e "SLSKD_SLSK_PASSWORD=<Soulseek password>" \
+ --name slskd \
+ slskd/slskd:canary
+```
+
+This command starts a container instance of slskd on ports 5000 (http) and 5001 (https), maps shared and downloads directories to the paths you choose, and logs in to Soulseek using the credentials provided.
+
+The default credentials for the web UI are slskd/slskd.
+
+## Installation
+
+The latest stable binaries can be downloaded from the [releases](https://github.com/slskd/slskd/releases) page. Platform specific binaries, along with the static content for the web UI, are produced as artifacts from every [build](https://github.com/slskd/slskd/actions?query=workflow%3ACI), if you'd prefer to use a canary release.
+
+Binaries are shipped as zip files; extract the zip to a directory of your choosing and run.
+
+## Configuration
+
+Configuration is provided via environment variables, a yaml configuration file, and via command line arguments, with the latter source taking precedence if more than one source is used (eg. a value specified in the configuration file overrides the same value specified by an environment variable).
+
+A full list of the environment variables and command line arguments supported by the application can be obtained with the following command:
+
+```
+./slskd --help --envars
+```
+
+An example of the yaml configuration file can be reviewed [here](https://github.com/slskd/slskd/blob/master/src/slskd/slskd.yml). \ No newline at end of file
diff --git a/src/slskd/Options.cs b/src/slskd/Options.cs
index 4ebc8bdc..b48853ef 100644
--- a/src/slskd/Options.cs
+++ b/src/slskd/Options.cs
@@ -189,6 +189,14 @@
Default: false,
Description: "generate X509 certificate and password for HTTPs"),
new(
+ ShortName: 'c',
+ LongName: "config",
+ EnvironmentVariable: "CONFIG",
+ Key: null,
+ Type: typeof(string),
+ Default: Program.DefaultConfigurationFile,
+ Description: "path to configuration file"),
+ new(
ShortName: 'd',
LongName: "debug",
EnvironmentVariable: "DEBUG",
@@ -205,14 +213,6 @@
Default: Defaults.NoLogo,
Description: "suppress logo on startup"),
new(
- ShortName: 'c',
- LongName: "config",
- EnvironmentVariable: "CONFIG",
- Key: null,
- Type: typeof(string),
- Default: Program.DefaultConfigurationFile,
- Description: "path to configuration file"),
- new(
ShortName: 'i',
LongName: "instance-name",
EnvironmentVariable: "INSTANCE_NAME",