compactd – Remote music player that supports adding more content
995
(pronounce compact-D)
Compactd aims to be a self-hosted remote music player in your browser, streaming from you own personal server. It will also allows to download new music onto your server just like headphones does.

Redux, React, PouchDB, Webpack, Typescript, Socket.io...
$ npm install --global compactd
$ compactd --configure
Follow the steps. Once it is down everything is configured!
You need at least to locations, one for the http part and one for the socket server which allows realtime data update. Example:
server {
listen 443 ssl;
server_name compactd.io;
include snippets/ssl-compactd.io.conf;
include snippets/ssl-params.conf;
access_log /var/log/nginx/access.log;
location /engine.io/ {
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_http_version 1.1;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_pass http://127.0.0.1:9001;
}
location / {
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
# Fix the âIt appears that your reverse proxy set up is broken" error.
proxy_pass http://127.0.0.1:9000;
proxy_read_timeout 90;
proxy_redirect http://127.0.0.1:9000 https://compactd.io;
}
}
Just run
$ compactd --serve
This will spawn a pm2 process in the background if it's not already running for process management.
$ pm2 restart compactd
$ pm2 stop compactd
Content type
Image
Digest
Size
466.4 MB
Last updated
over 8 years ago
docker pull nuxdie/compactd