diff --git a/apps/lrcapi/1.5.6/.env.sample b/apps/lrcapi/1.5.6/.env.sample new file mode 100644 index 00000000..91f7c439 --- /dev/null +++ b/apps/lrcapi/1.5.6/.env.sample @@ -0,0 +1,4 @@ +API_AUTH="authkey" +CONTAINER_NAME="lrcapi" +MUSIC_PATH="./data" +PANEL_APP_PORT_HTTP=28883 diff --git a/apps/lrcapi/1.5.6/data.yml b/apps/lrcapi/1.5.6/data.yml new file mode 100644 index 00000000..6a550f8c --- /dev/null +++ b/apps/lrcapi/1.5.6/data.yml @@ -0,0 +1,26 @@ +additionalProperties: + formFields: + - default: "28883" + edit: true + envKey: PANEL_APP_PORT_HTTP + labelEn: Port + labelZh: 端口 + required: true + rule: paramPort + type: number + - default: "./data" + edit: true + envKey: MUSIC_PATH + labelEn: Music Path + labelZh: 音乐路径 + required: true + type: text + - default: "authkey" + edit: true + envKey: API_AUTH + labelEn: API Auth Key + labelZh: API 鉴权 Key + random: true + required: true + rule: paramComplexity + type: password diff --git a/apps/lrcapi/1.5.6/docker-compose.yml b/apps/lrcapi/1.5.6/docker-compose.yml new file mode 100644 index 00000000..9d2294c3 --- /dev/null +++ b/apps/lrcapi/1.5.6/docker-compose.yml @@ -0,0 +1,19 @@ +services: + lrcapi: + image: "hisatri/lrcapi:1.5.6" + container_name: ${CONTAINER_NAME} + restart: always + networks: + - 1panel-network + ports: + - "${PANEL_APP_PORT_HTTP}:28883" + volumes: + - ${MUSIC_PATH}:/music + environment: + - API_AUTH=${API_AUTH} + labels: + createdBy: "Apps" + +networks: + 1panel-network: + external: true diff --git a/apps/lrcapi/README.md b/apps/lrcapi/README.md new file mode 100644 index 00000000..d8cfae2e --- /dev/null +++ b/apps/lrcapi/README.md @@ -0,0 +1,13 @@ +# LrcApi + +A Flask API For [StreamMusic](https://github.com/gitbobobo/StreamMusic) + +## 功能 + +支持酷狗/聚合API获取LRC歌词 + +支持text/json API + +支持获取音乐/专辑/艺术家封面 + +默认监听28883端口,API地址 `http://0.0.0.0:28883/lyrics` ;新版API地址 `http://0.0.0.0:28883/jsonapi` ;封面API地址 `http://0.0.0.0:28883/cover` 。 diff --git a/apps/lrcapi/data.yml b/apps/lrcapi/data.yml new file mode 100644 index 00000000..e27ae9cf --- /dev/null +++ b/apps/lrcapi/data.yml @@ -0,0 +1,19 @@ +name: LrcApi +tags: + - 多媒体 +title: StreamMusic 的 Flask 应用程序接口 +description: StreamMusic 的 Flask 应用程序接口 +additionalProperties: + key: lrcapi + name: LrcApi + tags: + - Media + shortDescZh: StreamMusic 的 Flask 应用程序接口 + shortDescEn: A Flask API For StreamMusic + type: tool + crossVersionUpdate: true + limit: 0 + recommend: 0 + website: https://docs.lrc.cx + github: https://github.com/HisAtri/LrcApi + document: https://docs.lrc.cx diff --git a/apps/lrcapi/latest/.env.sample b/apps/lrcapi/latest/.env.sample new file mode 100644 index 00000000..91f7c439 --- /dev/null +++ b/apps/lrcapi/latest/.env.sample @@ -0,0 +1,4 @@ +API_AUTH="authkey" +CONTAINER_NAME="lrcapi" +MUSIC_PATH="./data" +PANEL_APP_PORT_HTTP=28883 diff --git a/apps/lrcapi/latest/data.yml b/apps/lrcapi/latest/data.yml new file mode 100644 index 00000000..6a550f8c --- /dev/null +++ b/apps/lrcapi/latest/data.yml @@ -0,0 +1,26 @@ +additionalProperties: + formFields: + - default: "28883" + edit: true + envKey: PANEL_APP_PORT_HTTP + labelEn: Port + labelZh: 端口 + required: true + rule: paramPort + type: number + - default: "./data" + edit: true + envKey: MUSIC_PATH + labelEn: Music Path + labelZh: 音乐路径 + required: true + type: text + - default: "authkey" + edit: true + envKey: API_AUTH + labelEn: API Auth Key + labelZh: API 鉴权 Key + random: true + required: true + rule: paramComplexity + type: password diff --git a/apps/lrcapi/latest/docker-compose.yml b/apps/lrcapi/latest/docker-compose.yml new file mode 100644 index 00000000..1867a586 --- /dev/null +++ b/apps/lrcapi/latest/docker-compose.yml @@ -0,0 +1,19 @@ +services: + lrcapi: + image: "hisatri/lrcapi:latest" + container_name: ${CONTAINER_NAME} + restart: always + networks: + - 1panel-network + ports: + - "${PANEL_APP_PORT_HTTP}:28883" + volumes: + - ${MUSIC_PATH}:/music + environment: + - API_AUTH=${API_AUTH} + labels: + createdBy: "Apps" + +networks: + 1panel-network: + external: true diff --git a/apps/lrcapi/logo.png b/apps/lrcapi/logo.png new file mode 100644 index 00000000..1327ca90 Binary files /dev/null and b/apps/lrcapi/logo.png differ