Remote music player that supports adding more content
Compactd
(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.
Features
Future development
Stack
Redux, React, PouchDB, Webpack, Typescript, Socket.io...
Prequisites
Installation
$ npm install --global compactd
$ compactd --configure
Follow the steps. Once it is down everything is configured!
Nginx configuration
You need at least to locations, one for the http part and one for the socket server which allows realtime data update. Example:
server {Startinglisten 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.
Stopping, restarting
$ pm2 restart compactd
$ pm2 stop compactd
Twice a month we will interview people behind open source businesses. We will talk about how they are building a business on top of open source projects.
We'll never share your email with anyone else.