What is LX Music?
LX Music is a personal-developed third-party music search, download, and playback software. It has powerful functions, complete music library, and simple operation. It supports importing playlists from other mainstream music players and has multi-device synchronization capabilities. It can run on Windows, MacOS, Linux, and Android platforms.
What is LX Music Sync Server?
LX Music Sync Server is a data synchronization server for LX Music. It is currently used for synchronizing collection list data, similar to the data synchronization service on the original PC version. However, it is now an independent version of the service that can be deployed on a server.
Lao Su believes that using the independent version of the data synchronization service has advantages over the original PC version. On the one hand, it supports multiple users, and on the other hand, it is more suitable for deployment on servers, allowing access anytime and anywhere.
Building an Image
If you don't want to build it yourself, you can skip this section and read the next one.
The official Dockerfile is provided, but I couldn't find the official image, so you need to build it yourself.
The basic commands for building the image and running the container are as follows👇
Download the code#
git clone https://github.com/lyswhut/lx-music-sync-server.git
Add a proxy#
git clone https://ghproxy.com/github.com/lyswhut/lx-music-sync-server.git
Enter the directory#
cd lx-music-sync-server
Build the image#
docker build -t wbsu2003/lx-music-sync-server .
Run the container#
docker run -d
--name lx-music-sync-server
-p 9527:9527
wbsu2003/lx-music-sync-server
Installation
Install on Synology using Docker.
Search for wbsu2003/lx-music-sync-server in the registry, and choose the latest version.
Volumes
In the docker folder, create a new folder called lx-music-sync-server, and create two subfolders inside it, named data and logs.
Folder Mount Path Description
docker/lx-music-sync-server/data /server/data Stores configuration information
docker/lx-music-sync-server/logs /server/logs Stores logs
Ports
As long as the local ports do not conflict, you can use the following command to check
Check port usage#
netstat -tunlp | grep port number
Local Port Container Port
9527 9527
Environment
Variable Value
LX_USER_user1 Set the user password to mypassword123
The official provides many available variables. Except for the password, you can use the default values directly. Refer to https://github.com/lyswhut/lx-music-sync-server#available-environment-variables
The software supports multiple user settings, but the passwords cannot be the same;
Command Line Installation
If you are familiar with the command line, you may find it faster using docker cli
Create a new folder lx-music-sync-server and subdirectories#
mkdir -p /volume2/docker/lx-music-sync-server/{data,logs}
Enter the lx-music-sync-server directory#
cd /volume2/docker/lx-music-sync-server
Run the container#
docker run -d
--restart unless-stopped
--name lx-music-sync-server
-p 9527:9527
-v $(pwd)/data:/server/data
-v $(pwd)/logs://server/logs
-e LX_USER_user1=mypassword123
wbsu2003/lx-music-sync-server
You can also install using docker-compose. Save the following content as docker-compose.yml file
version: '3'
services:
syncserver:
image: wbsu2003/lx-music-sync-server
container_name: lx-music-sync-server
restart: unless-stopped
ports:
- 9527:9527
volumes:
- ./data:/server/data
- ./logs:/server/logs
environment:
- LX_USER_user1=mypassword123
Then execute the following command
Create a new folder lx-music-sync-server and subdirectories#
mkdir -p /volume2/docker/lx-music-sync-server/{data,logs}
Enter the lx-music-sync-server directory#
cd /volume2/docker/lx-music-sync-server
Put the docker-compose.yml file in the current directory#
Start with one command#
docker-compose up -d
Running
Server
Enter http://SynologyIP:9527/hello in the browser. If you see Hello~::^-^::~v3~ on the page, it means the service is OK.
Windows Client
Download link: https://github.com/lyswhut/lx-music-desktop/releases
Lao Su downloaded the Windows 2.2.0 Green Edition lx-music-desktop-v2.2.0-win_x64-green.7z
After extracting and running it, search for Shi Jin
Go to Settings -> Data Sync, and it is set to Server Mode by default
Server Mode is used to provide synchronization services for other devices in the same LAN
Client Mode is the same as the mobile version, and can be used to connect to a PC or independent version in "Server Mode"
But we have already installed the independent version of the data synchronization service lx-music-sync-server, so we need to change it to Client Mode
Enter the server address, check Enable Sync, and enter the connection code
The connection code is the password we set earlier. If you use mypassword123, the connection information will be recorded in the user1 user directory. If you use 123456, it will be recorded in the laosu directory
Check in File Station ``
Mobile Client
Download link: https://github.com/lyswhut/lx-music-mobile/releases
Usually, for Android phones, just download lx-music-mobile-v1.0.3-arm64-v8a.apk
After filling in the server address, check Enable Sync
After entering the connection code, because the desktop version has already been synced, you need to choose your sync method
Reverse Proxy
Just use npm to handle it normally, no special settings required
Reference Documentation
lyswhut/lx-music-sync-server: LX Music data synchronization service running on Node.js
Link: https://github.com/lyswhut/lx-music-sync-server
Usage of Sync Function | LX Music
Link: https://lxmusic.toside.cn/desktop/faq/sync
LX Music - A free and open-source music search tool | LX Music
Link: https://lxmusic.toside.cn/
lyswhut/lx-music-desktop: A music software based on Electron
Link: https://github.com/lyswhut/lx-music-desktop