Node.js backend for DPlayer
docker-compose build
docker-compose pull
docker-compose up # -d for run it in the background
Database data: ~/dplayer/db
DPlayer logs: ~/dplayer/logs
PM2 logs: ~/dplayer/pm2logs
mv dans.json ~/dplayer/db/backup/dans.json
docker exec dplayernode_mongo_1 mongoimport -d danmaku -c dans --file /data/db/backup/dans.json
docker exec dplayernode_mongo_1 mongoexport -d danmaku -c dans -o /data/db/backup/dans.json
cat ~/dplayer/db/backup/dans.json
docker-compose stop
DPlayer-node © DIYgod, Released under the MIT License.
Authored and maintained by DIYgod with help from contributors (list).
Blog @DIYgod · GitHub @DIYgod · Twitter @DIYgod · Telegram Channel @awesomeDIYgod
启动后端口号为1207,在Dplay中加入
danmaku: {
id: '9E2E3368B56CDBB4',
api: 'http://106.14.246.113:1207/', //[主要这个]这里路由链接记着在后面加/
token: 'tokendemo',
maximum: 1000,
user: 'DIYgod',
bottom: '15%',
unlimited: true,
},