diff --git a/apps/cloudreve/4.0.0/data.yml b/apps/cloudreve/4.0.0/data.yml new file mode 100644 index 000000000..47c174a16 --- /dev/null +++ b/apps/cloudreve/4.0.0/data.yml @@ -0,0 +1,132 @@ +additionalProperties: + formFields: + - child: + default: "" + envKey: PANEL_DB_HOST + required: false + type: service + default: postgresql + envKey: PANEL_DB_TYPE + labelZh: 数据库服务 (前置检查) + labelEn: Database Service + required: false + type: apps + values: + - label: PostgreSQL + value: postgresql + - label: MySQL + value: mysql + - label: MariaDB + value: mariadb + - label: Percona + value: percona + - child: + default: "" + envKey: PANEL_REDIS_SERVICE + required: false + type: service + default: redis + envKey: PANEL_REDIS_TYPE + labelZh: Redis 服务 (前置检查) + labelEn: Redis Service (Pre-check) + required: false + type: apps + values: + - label: Redis + value: redis + - default: "/home/cloudreve" + edit: true + envKey: CLOUDREVE_ROOT_PATH + labelZh: 数据持久化路径 + labelEn: Data persistence path + required: true + type: text + - default: 5212 + edit: true + envKey: PANEL_APP_PORT_HTTP + labelZh: WebUI 端口 + labelEn: WebUI port + required: true + rule: paramPort + type: number + - default: "sqlite" + edit: true + envKey: CR_CONF_Database.Type + labelZh: 数据库 类型 + labelEn: Database Type + required: true + type: select + values: + - label: PostgreSQL + value: postgres + - label: MySQL (MariaDB, Percona) + value: mysql + - label: sqlite + value: sqlite + - default: "127.0.0.1" + edit: true + envKey: CR_CONF_Database.Host + labelZh: 数据库 主机地址 + labelEn: Database Host + required: false + type: text + - default: 5432 + edit: true + envKey: CR_CONF_Database.Port + labelZh: 数据库 端口 + labelEn: Database Port + required: false + rule: paramPort + type: number + - default: "cloudreve" + edit: true + envKey: CR_CONF_Database.Name + labelZh: 数据库 名称 + labelEn: Database Name + required: false + rule: paramCommon + type: text + - default: "cloudreve" + edit: true + envKey: CR_CONF_Database.User + labelZh: 数据库 用户名 + labelEn: Database Username + required: false + type: text + - default: "" + edit: true + envKey: CR_CONF_Database.Password + labelZh: 数据库 密码 + labelEn: Database Password + random: true + required: false + rule: paramComplexity + type: password + - default: "127.0.0.1:6379" + edit: true + envKey: CR_CONF_Redis.Server + labelZh: Redis 地址 + labelEn: Redis Address + required: false + type: text + - default: 0 + edit: true + envKey: CR_CONF_Redis.DB + labelZh: Redis 索引 (0-20) + labelEn: Redis Index (0-20) + required: false + type: number + - default: "" + edit: true + envKey: CR_CONF_Redis.User + labelZh: Redis 用户 + labelEn: Redis User + required: false + type: text + - default: "" + edit: true + envKey: CR_CONF_Redis.Password + labelZh: Redis 密码 + labelEn: Redis Password + required: false + type: password diff --git a/apps/cloudreve/4.0.0/docker-compose.yml b/apps/cloudreve/4.0.0/docker-compose.yml new file mode 100644 index 000000000..8a42b26f1 --- /dev/null +++ b/apps/cloudreve/4.0.0/docker-compose.yml @@ -0,0 +1,22 @@ +networks: + 1panel-network: + external: true + +services: + cloudreve: + image: loudreve/cloudreve:4.0.0 + container_name: ${CONTAINER_NAME} + labels: + createdBy: "Apps" + restart: always + networks: + - 1panel-network + ports: + - ${PANEL_APP_PORT_HTTP}:5212 + env_file: + - ${GLOBAL_ENV_FILE:-/etc/1panel/envs/global.env} + - ${ENV_FILE:-/etc/1panel/envs/default.env} + volumes: + - ${CLOUDREVE_ROOT_PATH}/data:/cloudreve/data + environment: + - TZ=Asia/Shanghai diff --git a/apps/cloudreve/4.0.0/envs/default.env b/apps/cloudreve/4.0.0/envs/default.env new file mode 100644 index 000000000..cd05f46e6 --- /dev/null +++ b/apps/cloudreve/4.0.0/envs/default.env @@ -0,0 +1,2 @@ +# copyright© 2024 XinJiang Ms Studio +ENV_FILE=.env diff --git a/apps/cloudreve/4.0.0/envs/global.env b/apps/cloudreve/4.0.0/envs/global.env new file mode 100644 index 000000000..e10989fe4 --- /dev/null +++ b/apps/cloudreve/4.0.0/envs/global.env @@ -0,0 +1,2 @@ +# copyright© 2024 XinJiang Ms Studio +TZ=Asia/Shanghai diff --git a/apps/cloudreve/4.0.0/scripts/init.sh b/apps/cloudreve/4.0.0/scripts/init.sh new file mode 100644 index 000000000..07fb8c3fe --- /dev/null +++ b/apps/cloudreve/4.0.0/scripts/init.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/apps/cloudreve/4.0.0/scripts/uninstall.sh b/apps/cloudreve/4.0.0/scripts/uninstall.sh new file mode 100644 index 000000000..c86c4fbca --- /dev/null +++ b/apps/cloudreve/4.0.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/apps/cloudreve/4.0.0/scripts/upgrade.sh b/apps/cloudreve/4.0.0/scripts/upgrade.sh new file mode 100644 index 000000000..07fb8c3fe --- /dev/null +++ b/apps/cloudreve/4.0.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/apps/cloudreve/README.md b/apps/cloudreve/README.md new file mode 100644 index 000000000..a1b151ee3 --- /dev/null +++ b/apps/cloudreve/README.md @@ -0,0 +1,21 @@ +# Cloudreve + +Cloudreve 可以让您快速搭建起公私兼备的网盘系统。Cloudreve 在底层支持不同的云存储平台,用户在实际使用时无须关心物理存储方式。你可以使用 +Cloudreve 搭建个人用网盘、文件分享系统,亦或是针对大小团体的公有云系统。 + +![Cloudreve](https://file.lifebus.top/imgs/cloudreve_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) + +## 简介 + +Cloudreve 本身是一款“网盘”而非“其他网盘的管理器”,其所支持的存储提供商大多为公有云的存储专用产品,而非针对个人消费者的网盘。下面情况并不适合使用 +Cloudreve: + ++ 我需要用 Cloudreve 管理多个网盘上的文件; ++ 对于 Cloudreve 存储的文件,我同时也会使用其他文件管理器一起管理; ++ 我想把其他网盘存储服务“再分发”给我的用户使用; + +--- + +![Ms Studio](https://file.lifebus.top/imgs/ms_blank_001.png) diff --git a/apps/cloudreve/data.yml b/apps/cloudreve/data.yml new file mode 100644 index 000000000..d94354cfa --- /dev/null +++ b/apps/cloudreve/data.yml @@ -0,0 +1,14 @@ +additionalProperties: + key: cloudreve + name: Cloudreve + tags: + - WebSite + - Local + shortDescZh: 公私兼备的网盘系统 + shortDescEn: A private and public cloud storage system + type: website + crossVersionUpdate: true + limit: 0 + website: https://cloudreve.org/ + github: https://github.com/cloudreve/Cloudreve/ + document: https://docs.cloudreve.org/ diff --git a/apps/cloudreve/logo.png b/apps/cloudreve/logo.png new file mode 100644 index 000000000..1f14fa3c4 Binary files /dev/null and b/apps/cloudreve/logo.png differ diff --git a/apps/cloudreve/logo.svg b/apps/cloudreve/logo.svg new file mode 100644 index 000000000..0a2c6c14c --- /dev/null +++ b/apps/cloudreve/logo.svg @@ -0,0 +1,35 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +