cloudreve

by QuenchWorks

Helm chartv0.0.1App 4.19.1GPL-3.0-onlyVerified publisher

Cloudreve: self-hosted file management and sharing with a web UI, storage policies, WebDAV and share links, with the admin created at install and open registration off. Hardened by QuenchWorks: built from source, nonroot, CVE-gated, cosign-signed and pinned by digest.

About this chart

Quenchworks Cloudreve

Hardened Cloudreve, self-hosted file management and sharing: a web UI for uploads, folders, previews and share links, storage policies for the local volume or object storage, and WebDAV. The image is built from source with its React frontend embedded; it runs as uid 1001 and is CVE-gated at build, cosign-signed and pinned by digest.

Install

helm install drive oci://ghcr.io/quenchworks/charts/cloudreve --set [email protected]
kubectl get secret drive-cloudreve -o jsonpath='{.data.admin-password}' | base64 -d

Cloudreve makes the first account that registers the administrator. So the chart does not leave that to chance: a post-install Job registers admin.email with a generated password, then turns open registration off. Set registration.enabled=true to let others sign up; the Job re-applies the setting on every upgrade.

Configuration

KeyDefaultWhat it does
admin.email[email protected]The administrator, created by the bootstrap Job
admin.existingSecret""A Secret with admin-password instead of a generated one
registration.enabledfalseOpen self-registration for other users
persistence.size10Giconf.ini, the SQLite database and files on the local storage policy
settings{}Extra environment variables, e.g. CR_SETTING_DEFAULT_<name> defaults

The image is the core server. Upstream's optional thumbnail and offline-download helpers (ffmpeg, libvips, LibreOffice, aria2) are not in it; Cloudreve's built-in thumbnails work without them.

Verify the image

cosign verify ghcr.io/quenchworks/images/cloudreve \
  --certificate-identity-regexp 'https://github.com/quenchworks/.+' \
  --certificate-oidc-issuer https://token.actions.githubusercontent.com

Deploy cloudreve with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has cloudreve on a Hetzner server. Change the host, add apps from the marketplace, then copy the generated files. Providers and prices are samples, and nothing here is sent anywhere.

  1. Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
  2. Place the chartcloudreve is pinned at v0.0.1 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
  3. ApplySave opentenant.yaml and main.tf from the console, then run the commands below.
# opentenant.yaml, main.tf and dns.tf come from the builder below
opentenant validate opentenant.yaml
terraform init && terraform apply