发布应用 落雪音乐同步服务

This commit is contained in:
ms
2026-03-03 11:12:51 +08:00
parent cf1937e59e
commit 76816c4067
11 changed files with 168 additions and 0 deletions
+43
View File
@@ -0,0 +1,43 @@
additionalProperties:
formFields:
- default: "/home/lx-music-sync"
edit: true
envKey: LX_MUSIC_SYNC_ROOT_PATH
labelZh: 数据持久化路径
labelEn: Data persistence path
required: true
type: text
- default: 9527
edit: true
envKey: PANEL_APP_PORT_HTTP
labelZh: WebUI 端口
labelEn: WebUI port
required: true
rule: paramPort
type: number
- default: "落雪音乐"
edit: true
envKey: SERVER_NAME
labelZh: 服务名称
labelEn: Server Name
required: true
type: text
- default: "top"
edit: true
envKey: LIST_ADD_MUSIC_LOCATION_TYPE
labelZh: 添加歌曲位置
labelEn: Add Music Location
required: true
type: select
values:
- label: 顶部
value: "top"
- label: 尾部
value: "bottom"
- default: 3
edit: true
envKey: MAX_SNAPSHOT_NUM
labelZh: 最大快照数
labelEn: Max Snapshot Num
required: true
type: number
@@ -0,0 +1,24 @@
networks:
1panel-network:
external: true
services:
lx-music-sync:
image: lyswhut/lx-music-sync-server:v2.1.2
container_name: ${CONTAINER_NAME}
labels:
createdBy: "Apps"
restart: always
networks:
- 1panel-network
ports:
- ${PANEL_APP_PORT_HTTP}:9527
env_file:
- ${GLOBAL_ENV_FILE:-/etc/1panel/envs/global.env}
- ${ENV_FILE:-/etc/1panel/envs/default.env}
volumes:
- ${LX_MUSIC_SYNC_ROOT_PATH}/app:/app
environment:
- TZ=Asia/Shanghai
- PORT=9527
- BIND_IP=0.0.0.0
@@ -0,0 +1,2 @@
# copyright© 2024 XinJiang Ms Studio
ENV_FILE=.env
+2
View File
@@ -0,0 +1,2 @@
# copyright© 2024 XinJiang Ms Studio
TZ=Asia/Shanghai
+17
View File
@@ -0,0 +1,17 @@
#!/bin/bash
if [ -f .env ]; then
source .env
# setup-1 add default values
CURRENT_DIR=$(pwd)
sed -i '/^ENV_FILE=/d' .env
sed -i '/^GLOBAL_ENV_FILE=/d' .env
echo "ENV_FILE=${CURRENT_DIR}/.env" >> .env
echo "GLOBAL_ENV_FILE=${CURRENT_DIR}/envs/global.env" >> .env
echo "Check Finish."
else
echo "Error: .env file not found."
fi
@@ -0,0 +1,10 @@
#!/bin/bash
if [ -f .env ]; then
source .env
echo "Check Finish."
else
echo "Error: .env file not found."
fi
@@ -0,0 +1,17 @@
#!/bin/bash
if [ -f .env ]; then
source .env
# setup-1 add default values
CURRENT_DIR=$(pwd)
sed -i '/^ENV_FILE=/d' .env
sed -i '/^GLOBAL_ENV_FILE=/d' .env
echo "ENV_FILE=${CURRENT_DIR}/.env" >> .env
echo "GLOBAL_ENV_FILE=${CURRENT_DIR}/envs/global.env" >> .env
echo "Check Finish."
else
echo "Error: .env file not found."
fi
+30
View File
@@ -0,0 +1,30 @@
# 落雪音乐同步
运行在 Node.js 上的 LX Music 数据同步服务
![落雪音乐同步](https://file.lifebus.top/imgs/lx-music-sync_cover.png)
![](https://img.shields.io/badge/%E6%96%B0%E7%96%86%E8%90%8C%E6%A3%AE%E8%BD%AF%E4%BB%B6%E5%BC%80%E5%8F%91%E5%B7%A5%E4%BD%9C%E5%AE%A4-%E6%8F%90%E4%BE%9B%E6%8A%80%E6%9C%AF%E6%94%AF%E6%8C%81-blue)
## 简介
X Music 数据同步服务端。本项目目前用于收藏列表数据同步,类似桌面版的数据同步服务,只不过它现在是一个独立版的服务,可以将其部署到服务器上使用。
## 反向代理
```nginx
location / {
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Host $http_host;
proxy_pass http://127.0.0.1:9527;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection $connection_upgrade;
}
```
---
![Ms Studio](https://file.lifebus.top/imgs/ms_blank_001.png)
![Ms Studio](https://analytics.lifebus.top/p/wJix5nI1W)
+17
View File
@@ -0,0 +1,17 @@
additionalProperties:
key: lx-music-sync
name: 落雪音乐同步
tags:
- WebSite
- Local
shortDescZh: 一个免费&开源的音乐查找工具
shortDescEn: A free and open source music search tool
type: website
crossVersionUpdate: true
limit: 0
website: https://lxmusic.toside.cn/
github: https://github.com/lyswhut/lx-music-desktop/
document: https://lxmusic.toside.cn/
architectures:
- amd64
- arm64
Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

+6
View File
@@ -0,0 +1,6 @@
<svg xmlns="http://www.w3.org/2000/svg" width="447.942" height="447.943">
<path fill="#5ed698"
d="M203.806.482c-19.668-3.346-35.76 11.139-35.76 31.086v206.166c-11.642-4.271-24.165-6.725-37.281-6.725-59.905 0-108.469 48.566-108.469 108.473 0 59.903 48.564 108.461 108.469 108.461 34.141 0 64.54-15.82 84.406-40.482l-49.658-49.664c-15.116-15.112-11.708-28.901-9.542-34.14 2.166-5.233 9.514-17.4 30.883-17.4h18.082v-56.885c0-21.132 14.617-38.862 34.266-43.745.032-44.373.032-81.808.032-81.808 140.147 0 131.724 83.974 115.325 132.196-6.42 18.884-2.601 22.05 10.893 7.354C536.473 77.106 298.38 16.566 203.806.482z" />
<path fill="#4daf7c"
d="M301.061 223.876h-50.994c-3.911 0-7.574.95-10.889 2.523-8.616 4.09-14.615 12.798-14.615 22.973v76.51h-37.708c-14.082 0-17.428 8.071-7.466 18.029l46.893 46.898 31.25 31.246a25.424 25.424 0 0018.033 7.474c6.523 0 13.052-2.484 18.029-7.474l78.152-78.145c9.951-9.958 6.608-18.029-7.47-18.029h-37.71v-76.51c.001-14.078-11.42-25.495-25.505-25.495z" />
</svg>

After

Width:  |  Height:  |  Size: 997 B