How to Deploy and Use Cloudreve: An Open‑Source Multi‑Cloud File System
This article introduces Cloudreve, an open‑source public cloud file system supporting multiple storage backends, outlines its key features such as direct client uploads, Aria2 integration, WebDAV, and provides step‑by‑step deployment and build instructions for Linux and Windows environments.
Many users enjoy various cloud storage services; here we introduce Cloudreve, an open‑source public cloud file system that supports multiple storage drivers.
Key features include support for local, Qiniu, Alibaba OSS, Tencent COS, UpYun, OneDrive (including China Telecom version), client direct upload/download with speed limits, Aria2 offline download integration, online compression/uncompression, multi‑file packaging, full‑storage‑strategy WebDAV support, drag‑and‑drop upload, directory upload, stream upload handling, file drag‑and‑drop management, multi‑user and user‑group management, share links with automatic expiration, online preview of video, image, audio, text, Office documents, custom themes, dark mode, PWA, single‑page application, and an all‑in‑one ready‑to‑use package.
Cloudreve offers open‑source, Linux, and Windows versions. Quick deployment can be done with:
# Extract package
tar -zxvf cloudreve_VERSION_OS_ARCH.tar.gz
# Grant execution permission
chmod +x ./cloudreve
# Start Cloudreve
./cloudreveTo build from source:
Clone the repository.
Build static assets:
# Enter assets directory
cd assets
# Install dependencies
yarn install
# Build
yarn run buildEmbed static resources:
# Return to project root
cd ../
# Install statik for embedding
go get github.com/rakyll/statik
# Embed
statik -src=assets/build/ -include=*.html,*.js,*.json,*.css,*.png,*.svg,*.ico -fCompile the project:
# Get version and commit
export COMMIT_SHA=$(git rev-parse --short HEAD)
export VERSION=$(git describe --tags)
# Build
go build -a -o cloudreve -ldflags " -X 'github.com/cloudreve/Cloudreve/v3/pkg/conf.BackendVersion=$VERSION' -X 'github.com/cloudreve/Cloudreve/v3/pkg/conf.LastCommit=$COMMIT_SHA'"Give Cloudreve a try and explore its capabilities.
Signed-in readers can open the original source through BestHub's protected redirect.
This article has been distilled and summarized from source material, then republished for learning and reference. If you believe it infringes your rights, please contactand we will review it promptly.
Programmer DD
A tinkering programmer and author of "Spring Cloud Microservices in Action"
How this landed with the community
Was this worth your time?
0 Comments
Thoughtful readers leave field notes, pushback, and hard-won operational detail here.
