This Dockerfile build an image for peerflix-server with password protection capability.
docker run -d --name peerflix-server \
-p 8080:8080 \
-v /your/path/to/torrent-stream:/tmp/torrent-stream \
onisuly/peerflix-server
docker run -d --name peerflix-server \
-p 8080:8080 \
-e SECURE=true \
-e USERNAME=your_name \
-e PASSWORD=your_password \
-v /your/path/to/torrent-stream:/tmp/torrent-stream \
onisuly/peerflix-server
If you want to add multiple users, your can generate .htpasswd file here and mount it to your container.
docker run -d --name peerflix-server \
-p 8080:8080 \
-v /your/path/to/.htpasswd:/etc/squid/users \
-v /your/path/to/torrent-stream:/tmp/torrent-stream \
onisuly/peerflix-server
Read Peerflix Server Readme for more information.