🌩支持多家云存储的云盘系统 (Self-hosted file management and sharing system, supports multiple storage providers)
Find a file
2022-12-19 17:35:39 +08:00
.github doc: change readme link 2022-12-16 21:13:17 +08:00
assets@01343d7656 feat(session): generate temp URL to copy/refresh user session 2022-12-19 17:34:57 +08:00
bootstrap fix(request): deep copy shared header object in request options 2022-10-15 16:16:17 +08:00
middleware feat(mobile): only allow request from mobile client to copy session 2022-12-19 17:35:39 +08:00
models feat(s3): support setting for force using path style endpoint (#1559) 2022-12-16 16:54:58 +08:00
pkg release: 3.6.1 2022-12-16 17:37:21 +08:00
routers feat(mobile): only allow request from mobile client to copy session 2022-12-19 17:35:39 +08:00
service feat(session): generate temp URL to copy/refresh user session 2022-12-19 17:34:57 +08:00
.gitignore fix: zip assets folder path error 2022-04-26 19:47:22 +08:00
.gitmodules Modify: use public URL for asserts module 2020-03-12 12:07:07 +08:00
.travis.yml feat(static): release static files into memory while startup (#1471) 2022-10-15 09:05:05 +08:00
assets.zip fix(static): add placeholder empty zip file for go embed 2022-10-15 16:40:00 +08:00
build.sh refactor: build docker image using build.sh (#1562) 2022-12-15 22:23:34 +08:00
docker-compose.yml feat: docker/docker-compose support (#1203) 2022-04-11 22:13:33 +08:00
Dockerfile refactor: build docker image using build.sh (#1562) 2022-12-15 22:23:34 +08:00
go.mod dep: git mod tidy 2022-12-16 14:01:59 +08:00
go.sum dep: git mod tidy 2022-12-16 14:01:59 +08:00
LICENSE Add: README & License 2020-03-12 19:20:40 +08:00
main.go enhance: escalate ProxyHeader as a global config 2022-12-16 16:58:06 +08:00
README.md doc: change readme link 2022-12-16 21:13:17 +08:00
README_zh-CN.md doc: change readme link 2022-12-19 17:33:15 +08:00

中文版本



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