Set up Service
/usr/lib/systemd/system/unblockneteasemusic.service[Unit]
Description=unblockneteasemusic.service
After=network.target
Wants=network.target
[Service]
Type=simple
PIDFile=/run/unblockneteasemusic.pid
# StandardOutput=null
ExecStart=/bin/setsid /usr/bin/node /usr/lib/node_modules/@nondanee/unblockneteasemusic/app.js -p 8080 -s -t [user]:[password]
Restart=/bin/pkill node && /bin/setsid /usr/bin/node /usr/lib/node_modules/@nondanee/unblockneteasemusic/app.js -p 8080 -s -t [user]:[password]
# Restart=always
# RestartSec=10
# ExecStop=/bin/pkill node
RestartPreventExitStatus=23
# ExecReload=
# PrivateTmp=true
RemainAfterExit=yes
# ExecStartPre=
[Install]
WantedBy=multi-user.target
For sucurity purpose, the proxy is protected with token. Despite the Netease Music Client have the token field (i.e. user name and password) it won't actually work. Thus, Proxifier is employed to establish the connection.
Bash
yum install nodejs
npm -g install @nondanee/unblockneteasemusic
systemctl enable unblockneteasemusic
systemctl -q start unblockneteasemusic