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 9eafe07f4e
doc: add English README
2 years ago
.github feat(static): release static files into memory while startup (#1471) 2 years ago
assets@f0a1835ce1 doc: add English README 2 years ago
bootstrap fix(request): deep copy shared header object in request options 2 years ago
middleware Added `same-site` policy for session options (#1381) 2 years ago
models feat(s3): support setting for force using path style endpoint (#1559) 2 years ago
pkg release: 3.6.1 2 years ago
routers feat(cache): set `max-age` for public accessible static resources 2 years ago
service feat(doc preview): add magic variable for file name 2 years ago
.gitignore fix: zip assets folder path error 3 years ago
.gitmodules Modify: use public URL for asserts module 5 years ago
.travis.yml feat(static): release static files into memory while startup (#1471) 2 years ago
Dockerfile refactor: build docker image using build.sh (#1562) 2 years ago
LICENSE Add: README & License 5 years ago
README.md doc: add English README 2 years ago
README_zh-CN.md doc: add English README 2 years ago
assets.zip fix(static): add placeholder empty zip file for go embed 2 years ago
build.sh refactor: build docker image using build.sh (#1562) 2 years ago
docker-compose.yml feat: docker/docker-compose support (#1203) 3 years ago
go.mod dep: git mod tidy 2 years ago
go.sum dep: git mod tidy 2 years ago
main.go enhance: escalate `ProxyHeader` as a global config 2 years ago

README.md

中文版本



Cloudreve

Self-hosted file management system with muilt-cloud support.

GitHub Test Workflow

HomepageDemoDiscussionDocumentsDownloadTelegram GroupLicense

Screenshot

Features

  • ☁️ Support storing files into Local storage, Remote storage, Qiniu, Aliyun OSS, Tencent COS, Upyun, OneDrive, S3 compatible API.
  • 📤 Upload/Download in directly transmission with speed limiting support.
  • 💾 Integrate with Aria2 to download files offline, use multiple download nodes to share the load.
  • 📚 Compress/Extract files, download files in batch.
  • 💻 WebDAV support covering all storage providers.
  • Drag&Drop to upload files or folders, with streaming upload processing.
  • 🗃️ Drag & Drop to manage your files.
  • 👩‍👧‍👦 Multi-users with multi-groups.
  • 🔗 Create share links for files and folders with expiration date.
  • 👁️‍🗨️ Preview videos, images, audios, texts, Office documents, ePub files online.
  • 🎨 Customize theme colors, dark mode, PWA application, SPA, i18n.
  • 🚀 All-In-One packing, with all features out-of-the-box.
  • 🌈 ... ...

🛠️ Deploy

Download the main binary for your target machine OS, CPU architecture and run it directly.

# Extract Cloudreve binary
tar -zxvf cloudreve_VERSION_OS_ARCH.tar.gz

# Grant execute permission
chmod +x ./cloudreve

# Start Cloudreve
./cloudreve

The above is a minimum deploy example, you can refer to Getting started for a completed deployment.

⚙️ Build

You need to have Go >= 1.18, node.js, yarn, zip and other necessary dependencies before you can build it yourself.

Clone the code

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

Build static resources

# Enter frontend sub-module
cd assets
# Install dependencies
yarn install
# Start building
yarn run build
# Delete unused map files
cd build
find . -name "*.map" -type f -delete
# Return to main folder to pack static files
cd ../../
zip -r - assets/build >assets.zip

Compile

# Obtain version number, commit SHA
export COMMIT_SHA=$(git rev-parse --short HEAD)
export VERSION=$(git describe --tags)

# Compile
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'"

You can also start a quick build using build.sh in the project root directory:

./build.sh  [-a] [-c] [-b] [-r]
	a - Build assets
	c - Build binary backend
	b - Build both assets and backend
	r - Cross-compilation for final release

⚗️ Stacks

📜 License

GPL V3