From 1670e114168c69f530d6e397a756177f90662bc5 Mon Sep 17 00:00:00 2001 From: JP Dillingham Date: Mon, 8 Feb 2021 08:31:37 -0600 Subject: move config option --- src/slskd/Options.cs | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) 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 @@ -188,6 +188,14 @@ Type: typeof(bool), 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", @@ -204,14 +212,6 @@ Type: typeof(bool), 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", -- cgit v1.2.3 From 3f3529ae52a8b1f82df8b8965a682220589620a2 Mon Sep 17 00:00:00 2001 From: JP Dillingham Date: Mon, 8 Feb 2021 08:52:47 -0600 Subject: update readme --- README.md | 40 +++++++++++++++++++++++++++++++++++++++- 1 file changed, 39 insertions(+), 1 deletion(-) 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 :/var/slskd/downloads \ + -v :/var/slsd/shared \ + -e "SLSKD_SLSK_USERNAME=" \ + -e "SLSKD_SLSK_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 -- cgit v1.2.3