Soundscape - a personal music streaming server
Email [email protected]
Running Soundscape on a VPS is designed to be as simple as possible.
Recommended Specs
Recommended Providers
Create a DNS A record in your domain pointing to your server's IP address.
Example: music.example.com A 172.16.1.1
When enabled with the --letsencrypt flag, soundscape runs a TLS ("SSL") https server on port 443. It also runs a standard web server on port 80 to redirect clients to the secure server.
Requirements
Replace amd64 with arm64 or armv7 depending on your architecture.
…# Create the htpassword file, setting a password.
$ sudo htpasswd -c /etc/nginx/soundscape.htpasswd
New password:
Re-type new password:
Adding password for user
# Verify that you've created your htpasswd file correctly.
$ sudo cat /etc/nginx/soundscape.htpasswd
:$apr1$9MuKubBu315eW3IjIy/Ci290dAtIac/
Run soundscape on localhost port 8000 with reverse proxy authentication, using Docker or not.
Note: You must specify --reverse-proxy-ip to disable basic auth and enable X-Authenticated-User header auth.
$ soundscape --http-addr 127.0.0.1:8000 --http-host music.example.com --reverse-proxy-ip 127.0.0.1
You might edit /etc/nginx/sites-enabled/default or wherever your nginx config lives.
…Probably the easiest way to run Soundscape is using the Docker image.
…The official image is soundscapecloud/soundscape, which should run in any up-to-date Docker environment.
…Pull the latest image, remove the container, and re-create the container as explained above.
# Pull the latest image
$ sudo docker pull soundscapecloud/soundscape
# Stop the container
$ sudo docker stop soundscape
# Remove the container (data is stored on the mounted volume)
$ sudo docker rm soundscape
# Re-create and start the container
$ sudo docker create ... (see above)
…The easiest way to build the static binary is using the Dockerfile.build file.
…No open issues yet, or sync has not completed.