diff options
| author | JP Dillingham <jpdillingham@gmail.com> | 2021-02-08 08:53:40 -0600 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-02-08 08:53:40 -0600 |
| commit | da121dc0373ada800d2880c492995dbbd597c38e (patch) | |
| tree | cfdf15a71ff4cd317d2609b6386d1cf01fcd8a10 | |
| parent | e4a68f8cf75fbe8d00f05b710b4830f9d756e6e2 (diff) | |
| parent | 3f3529ae52a8b1f82df8b8965a682220589620a2 (diff) | |
| download | slskd-da121dc0373ada800d2880c492995dbbd597c38e.tar.gz | |
Merge pull request #39 from slskd/readme
Update Readme
| -rw-r--r-- | README.md | 40 | ||||
| -rw-r--r-- | src/slskd/Options.cs | 16 |
2 files changed, 47 insertions, 9 deletions
@@ -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", |
