diff options
| author | JP Dillingham <jpdillingham@gmail.com> | 2021-12-03 08:46:15 -0600 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-12-03 08:46:15 -0600 |
| commit | 6d0d042c9ce584cb76248513b477e905dae6c87c (patch) | |
| tree | ca0b2e3bd38de589d10a0cb4d6d35c365b8c8ddc /README.md | |
| parent | d89f605a2b0b8a453b4a1a92d32373a138929873 (diff) | |
| parent | 2b5d36a09796d1912e8e2f8dff84fdbde3c889cc (diff) | |
| download | slskd-6d0d042c9ce584cb76248513b477e905dae6c87c.tar.gz | |
Merge pull request #293 from slskd/docs
Add configuration documentation
Diffstat (limited to 'README.md')
| -rw-r--r-- | README.md | 46 |
1 files changed, 18 insertions, 28 deletions
@@ -4,22 +4,18 @@ slskd is a modern client-server application for the Soulseek file sharing networ ## Quick Start -### Docker Run +### With Docker ``` docker run -d \ -p 5000:5000 \ -p 5001:5001 \ - -v <path/to/downloads>:/var/slskd/downloads \ - -v <path/to/incoming>:/var/slskd/incoming \ - -v <path/to/shared>:/var/slskd/shared \ - -e "SLSKD_USERNAME=<slskd username>" \ - -e "SLSKD_PASSWORD=<slskd password>" \ - -e "SLSKD_SLSK_USERNAME=<Soulseek username>" \ - -e "SLSKD_SLSK_PASSWORD=<Soulseek password>" \ + -p 50000:50000 \ + -v <path/to/application/data>:/app \ --name slskd \ slskd/slskd:latest ``` -### Docker-Compose +### With Docker-Compose + ``` --- version: "2" @@ -27,38 +23,32 @@ services: slskd: image: slskd/slskd container_name: slskd + ports: + - "5000:5000" + - "5001:5001" + - "50000:50000" environment: - PUID=1000 - PGID=1000 - - TZ=Australia/Sydney - - SLSKD_USERNAME=<slskd username> - - SLSKD_PASSWORD=<slskd password> - - SLSKD_SLSK_USERNAME=<Soulseek username> - - SLSKD_SLSK_PASSWORD=<Soulseek password> volumes: - - <path/to/downloads>:/var/slskd/downloads - - <path/to/incoming>:/var/slskd/incoming - - <path/to/shared>:/var/slskd/shared + - <path/to/application/data>:/app restart: always ``` -This command or docker-compose file (depending on your choice) starts a container instance of slskd on ports 5000 (http) and 5001 (https), maps shared, downloads and incoming 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. +This command or docker-compose file (depending on your choice) starts a container instance of slskd on ports 5000 (http) and 5001 (https), begins listening for incoming connections on port 50000, and maps the application directory to the provided path. + +A more in-depth guide to running slskd in Docker can be found [here](https://github.com/slskd/slskd/blob/master/docs/docker.md). -## Installation +### With Binaries 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). +An application directory will be created in either `~/.local/share/slskd` (on Linux and macOS) or `%localappdata%/slskd` (on Windows). -A full list of the environment variables and command line arguments supported by the application can be obtained with the following command: +## Configuration -``` -./slskd --help --envars -``` +Once running, log in to the web UI using the default username `slskd` and password `slskd` to complete the configuration. -An example of the yaml configuration file can be reviewed [here](https://github.com/slskd/slskd/blob/master/config/slskd.example.yml). +Detailed documentation for configuration options can be found [here](https://github.com/slskd/slskd/blob/master/docs/config.md), and an example of the yaml configuration file can be reviewed [here](https://github.com/slskd/slskd/blob/master/config/slskd.example.yml). |
