Diagrams是一个云系统架构原型图制作库,它的诞生是为了在没有任何设计工具的情况下对新的系统架构进行原型设计。您还可以描述或可视化现有系统架构,Diagram as Code允许您跟踪任何版本控制系统中的架构图更改。相比于在 UI 上面对各种图标进行拖拽和调整,这种方式更符合我们程序员的使用习惯。
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Go to file
HFO4 c17cf1946a
fix(static): add placeholder empty zip file for go embed
2 years ago
.github feat(static): release static files into memory while startup (#1471) 2 years ago
assets@2ca4a957a5 fix(static): add placeholder empty zip file for go embed 2 years ago
bootstrap fix(request): deep copy shared header object in request options 2 years ago
middleware i18n: logs in bootstrapper and response code in middleware 2 years ago
models fix: cannot delete mass files (>=333) in SQLite (#622) 2 years ago
pkg feat(OneDrive): support `Retry-After` throttling control from Graph API (#280) 2 years ago
routers i18n: logs in rest pkgs 2 years ago
service Fix: cannot finish callback when uploading an office file using sharepoint.cn (#1503) 2 years ago
.gitignore fix: zip assets folder path error 2 years ago
.gitmodules Modify: use public URL for asserts module 4 years ago
.travis.yml feat(static): release static files into memory while startup (#1471) 2 years ago
Dockerfile feat(static): release static files into memory while startup (#1471) 2 years ago
LICENSE Add: README & License 4 years ago
README.md feat(static): release static files into memory while startup (#1471) 2 years ago
assets.zip fix(static): add placeholder empty zip file for go embed 2 years ago
build.sh chore: better way to remove frontend map files (#1380) 2 years ago
docker-compose.yml feat: docker/docker-compose support (#1203) 2 years ago
go.mod feat(static): release static files into memory while startup (#1471) 2 years ago
go.sum graceful 关闭服务器 (#1416) 2 years ago
main.go feat(static): release static files into memory while startup (#1471) 2 years ago

README.md



Cloudreve

支持多家云存储驱动的公有云文件系统.

GitHub Test Workflow

演示站讨论社区文档下载Telegram 群组许可证

Screenshot

特性

  • ☁️ 支持本机、从机、七牛、阿里云 OSS、腾讯云 COS、又拍云、OneDrive (包括世纪互联版) 作为存储端
  • 📤 上传/下载 支持客户端直传,支持下载限速
  • 💾 可对接 Aria2 离线下载,可使用多个从机节点分担下载任务
  • 📚 在线 压缩/解压缩、多文件打包下载
  • 💻 覆盖全部存储策略的 WebDAV 协议支持
  • 拖拽上传、目录上传、流式上传处理
  • 🗃️ 文件拖拽管理
  • 👩‍👧‍👦 多用户、用户组
  • 🔗 创建文件、目录的分享链接,可设定自动过期
  • 👁️‍🗨️ 视频、图像、音频、文本、Office 文档在线预览
  • 🎨 自定义配色、黑暗模式、PWA 应用、全站单页应用
  • 🚀 All-In-One 打包,开箱即用
  • 🌈 ... ...

🛠️ 部署

下载适用于您目标机器操作系统、CPU架构的主程序直接运行即可。

# 解压程序包
tar -zxvf cloudreve_VERSION_OS_ARCH.tar.gz

# 赋予执行权限
chmod +x ./cloudreve

# 启动 Cloudreve
./cloudreve

以上为最简单的部署示例,您可以参考 文档 - 起步 进行更为完善的部署。

⚙️ 构建

自行构建前需要拥有 Go >= 1.18node.jsyarnzip 等必要依赖。

克隆代码

git clone --recurse-submodules https://github.com/cloudreve/Cloudreve.git

构建静态资源

# 进入前端子模块
cd assets
# 安装依赖
yarn install
# 开始构建
yarn run build
# 构建完成后删除映射文件
cd build
find . -name "*.map" -type f -delete
# 返回项目主目录打包静态资源
cd ../../
zip -r - assets/build >assets.zip

编译项目

# 获得当前版本号、Commit
export COMMIT_SHA=$(git rev-parse --short HEAD)
export VERSION=$(git describe --tags)

# 开始编译
go build -a -o cloudreve -ldflags "-s -w -X 'github.com/cloudreve/Cloudreve/v3/pkg/conf.BackendVersion=$VERSION' -X 'github.com/cloudreve/Cloudreve/v3/pkg/conf.LastCommit=$COMMIT_SHA'"

你也可以使用项目根目录下的 build.sh 快速开始构建:

./build.sh  [-a] [-c] [-b] [-r]
	a - 构建静态资源
	c - 编译二进制文件
	b - 构建前端 + 编译二进制文件
	r - 交叉编译构建用于release的版本

⚗️ 技术栈

📜 许可证

GPL V3


GitHub @HFO4  ·  Twitter @abslant00