diff --git a/appstore/cloudsaver/0.6.0/.env b/appstore/cloudsaver/0.6.0/.env new file mode 100644 index 000000000..ab8479973 --- /dev/null +++ b/appstore/cloudsaver/0.6.0/.env @@ -0,0 +1,9 @@ +# 数据持久化路径 [必填] +CLOUDSAVER_ROOT_PATH=/home/cloudsaver + +# WebUI 端口 [必填] +PANEL_APP_PORT_HTTP=8008 + +# JWT 密钥 [必填] +JWT_SECRET= + diff --git a/appstore/cloudsaver/0.6.0/config/env.example b/appstore/cloudsaver/0.6.0/config/env.example new file mode 100644 index 000000000..9310e9073 --- /dev/null +++ b/appstore/cloudsaver/0.6.0/config/env.example @@ -0,0 +1,8 @@ +# JWT配置 +JWT_SECRET=${JWT_SECRET} + +# Telegram配置 +TELEGRAM_BASE_URL=https://t.me/s + +# Telegram频道配置 +TELE_CHANNELS=[] diff --git a/appstore/cloudsaver/0.6.0/data.yml b/appstore/cloudsaver/0.6.0/data.yml new file mode 100644 index 000000000..9e5474fc4 --- /dev/null +++ b/appstore/cloudsaver/0.6.0/data.yml @@ -0,0 +1,24 @@ +additionalProperties: + formFields: + - default: "/home/cloudsaver" + edit: true + envKey: CLOUDSAVER_ROOT_PATH + labelZh: 数据持久化路径 + labelEn: Data persistence path + required: true + type: text + - default: 8008 + edit: true + envKey: PANEL_APP_PORT_HTTP + labelZh: WebUI 端口 + labelEn: WebUI port + required: true + rule: paramPort + type: number + - default: "" + edit: true + envKey: JWT_SECRET + labelZh: JWT 密钥 + labelEn: JWT secret + required: true + type: text diff --git a/appstore/cloudsaver/0.6.0/docker-compose.yml b/appstore/cloudsaver/0.6.0/docker-compose.yml new file mode 100644 index 000000000..832939622 --- /dev/null +++ b/appstore/cloudsaver/0.6.0/docker-compose.yml @@ -0,0 +1,32 @@ +networks: + 1panel-network: + external: true +services: + cloudsaver: + container_name: cloudsaver + env_file: + - ./envs/global.env + - .env + environment: + - TZ=Asia/Shanghai + healthcheck: + interval: 30s + retries: 3 + start_period: 5s + test: 'CMD-SHELL node -e "require(''http'').get(''http://localhost:8008/health'', + res => (res.statusCode >= 200 && res.statusCode < 400) ? process.exit(0) : + process.exit(1)).on(''error'', () => process.exit(1))" + + ' + timeout: 3s + image: jiangrui1994/cloudsaver:v0.6.0 + labels: + createdBy: Apps + networks: + - 1panel-network + ports: + - ${PANEL_APP_PORT_HTTP}:8008 + restart: always + volumes: + - ${CLOUDSAVER_ROOT_PATH}/data:/app/data + - ${CLOUDSAVER_ROOT_PATH}/config:/app/config diff --git a/appstore/cloudsaver/0.6.0/envs/default.env b/appstore/cloudsaver/0.6.0/envs/default.env new file mode 100644 index 000000000..cd05f46e6 --- /dev/null +++ b/appstore/cloudsaver/0.6.0/envs/default.env @@ -0,0 +1,2 @@ +# copyright© 2024 XinJiang Ms Studio +ENV_FILE=.env diff --git a/appstore/cloudsaver/0.6.0/envs/global.env b/appstore/cloudsaver/0.6.0/envs/global.env new file mode 100644 index 000000000..e10989fe4 --- /dev/null +++ b/appstore/cloudsaver/0.6.0/envs/global.env @@ -0,0 +1,2 @@ +# copyright© 2024 XinJiang Ms Studio +TZ=Asia/Shanghai diff --git a/appstore/cloudsaver/0.6.0/scripts/init.sh b/appstore/cloudsaver/0.6.0/scripts/init.sh new file mode 100644 index 000000000..4e2de7a27 --- /dev/null +++ b/appstore/cloudsaver/0.6.0/scripts/init.sh @@ -0,0 +1,25 @@ +#!/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 + + # setup-2 copy env file + CONFIG_DIR="$CLOUDSAVER_ROOT_PATH/config" + mkdir -p "$CONFIG_DIR" + + CONFIG_FILE="$CONFIG_DIR/env" + cp ./config/env.example $CONFIG_FILE + sed -i "s/JWT_SECRET=.*/JWT_SECRET=$JWT_SECRET/" $CONFIG_FILE + + echo "Check Finish." + +else + echo "Error: .env file not found." +fi diff --git a/appstore/cloudsaver/0.6.0/scripts/uninstall.sh b/appstore/cloudsaver/0.6.0/scripts/uninstall.sh new file mode 100644 index 000000000..c86c4fbca --- /dev/null +++ b/appstore/cloudsaver/0.6.0/scripts/uninstall.sh @@ -0,0 +1,10 @@ +#!/bin/bash + +if [ -f .env ]; then + source .env + + echo "Check Finish." + +else + echo "Error: .env file not found." +fi diff --git a/appstore/cloudsaver/0.6.0/scripts/upgrade.sh b/appstore/cloudsaver/0.6.0/scripts/upgrade.sh new file mode 100644 index 000000000..07fb8c3fe --- /dev/null +++ b/appstore/cloudsaver/0.6.0/scripts/upgrade.sh @@ -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 diff --git a/appstore/cloudsaver/README.md b/appstore/cloudsaver/README.md new file mode 100644 index 000000000..17fa62e80 --- /dev/null +++ b/appstore/cloudsaver/README.md @@ -0,0 +1,34 @@ +# CloudSaver + +网盘资源搜索与转存工具,支持响应式布局,移动端与PC完美适配。 + +![CloudSaver](https://file.lifebus.top/imgs/cloudsaver_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) + +## 功能特性 + +### 🔍 多源资源搜索 + ++ 支持多个资源订阅源搜索 ++ 支持关键词搜索与资源链接解析 ++ 支持豆瓣热门榜单展示 + +### 💾 网盘资源转存 + ++ 支持115 网盘,夸克网盘,天翼网盘,123云盘一键转存 ++ 支持转存文件夹展示与选择 + +### 👥 多用户系统 + ++ 支持用户注册登录 ++ 支持管理员与普通用户权限区分 + +### 📱 响应式设计 + ++ 支持 PC 端与移动端自适应布局 ++ 针对不同设备优化的交互体验 + +--- + +![Ms Studio](https://file.lifebus.top/imgs/ms_blank_001.png) diff --git a/appstore/cloudsaver/data.yml b/appstore/cloudsaver/data.yml new file mode 100644 index 000000000..f1879907d --- /dev/null +++ b/appstore/cloudsaver/data.yml @@ -0,0 +1,14 @@ +additionalProperties: + key: cloudsaver + name: CloudSaver + tags: + - WebSite + - Local + shortDescZh: 网盘资源搜索与转存工具 + shortDescEn: Network disk resource search and transfer tool + type: website + crossVersionUpdate: true + limit: 0 + website: https://github.com/jiangrui1994/CloudSaver/ + github: https://github.com/jiangrui1994/CloudSaver/ + document: https://github.com/jiangrui1994/CloudSaver/ diff --git a/appstore/cloudsaver/logo.png b/appstore/cloudsaver/logo.png new file mode 100644 index 000000000..e1b0f445a Binary files /dev/null and b/appstore/cloudsaver/logo.png differ diff --git a/appstore/cloudsaver/logo.svg b/appstore/cloudsaver/logo.svg new file mode 100644 index 000000000..07df98ce9 --- /dev/null +++ b/appstore/cloudsaver/logo.svg @@ -0,0 +1,3753 @@ + + + + diff --git a/dockge/cloudsaver/.env b/dockge/cloudsaver/.env new file mode 100644 index 000000000..ab8479973 --- /dev/null +++ b/dockge/cloudsaver/.env @@ -0,0 +1,9 @@ +# 数据持久化路径 [必填] +CLOUDSAVER_ROOT_PATH=/home/cloudsaver + +# WebUI 端口 [必填] +PANEL_APP_PORT_HTTP=8008 + +# JWT 密钥 [必填] +JWT_SECRET= + diff --git a/dockge/cloudsaver/config/env.example b/dockge/cloudsaver/config/env.example new file mode 100644 index 000000000..9310e9073 --- /dev/null +++ b/dockge/cloudsaver/config/env.example @@ -0,0 +1,8 @@ +# JWT配置 +JWT_SECRET=${JWT_SECRET} + +# Telegram配置 +TELEGRAM_BASE_URL=https://t.me/s + +# Telegram频道配置 +TELE_CHANNELS=[] diff --git a/dockge/cloudsaver/docker-compose.yml b/dockge/cloudsaver/docker-compose.yml new file mode 100644 index 000000000..832939622 --- /dev/null +++ b/dockge/cloudsaver/docker-compose.yml @@ -0,0 +1,32 @@ +networks: + 1panel-network: + external: true +services: + cloudsaver: + container_name: cloudsaver + env_file: + - ./envs/global.env + - .env + environment: + - TZ=Asia/Shanghai + healthcheck: + interval: 30s + retries: 3 + start_period: 5s + test: 'CMD-SHELL node -e "require(''http'').get(''http://localhost:8008/health'', + res => (res.statusCode >= 200 && res.statusCode < 400) ? process.exit(0) : + process.exit(1)).on(''error'', () => process.exit(1))" + + ' + timeout: 3s + image: jiangrui1994/cloudsaver:v0.6.0 + labels: + createdBy: Apps + networks: + - 1panel-network + ports: + - ${PANEL_APP_PORT_HTTP}:8008 + restart: always + volumes: + - ${CLOUDSAVER_ROOT_PATH}/data:/app/data + - ${CLOUDSAVER_ROOT_PATH}/config:/app/config diff --git a/dockge/cloudsaver/envs/default.env b/dockge/cloudsaver/envs/default.env new file mode 100644 index 000000000..cd05f46e6 --- /dev/null +++ b/dockge/cloudsaver/envs/default.env @@ -0,0 +1,2 @@ +# copyright© 2024 XinJiang Ms Studio +ENV_FILE=.env diff --git a/dockge/cloudsaver/envs/global.env b/dockge/cloudsaver/envs/global.env new file mode 100644 index 000000000..e10989fe4 --- /dev/null +++ b/dockge/cloudsaver/envs/global.env @@ -0,0 +1,2 @@ +# copyright© 2024 XinJiang Ms Studio +TZ=Asia/Shanghai