chibisafe

by L4G

Helm chartv0.1.1App latestMITVerified publisher

A Helm chart for Chibisafe - blazing fast file vault and sharing platform

About this chart

Chibisafe Helm Chart

A Helm chart for deploying Chibisafe - a blazing fast file vault and sharing platform written in TypeScript.

Description

Chibisafe is a modern, self-hosted file uploader and sharing service that supports:

  • Chunked uploads for large files
  • Album creation and sharing
  • URL shortening
  • User management with quotas
  • S3-compatible storage integration
  • Public, private, or invite-only modes
  • RESTful API for programmatic access

Prerequisites

  • Kubernetes 1.19+
  • Helm 3.2.0+
  • PV provisioner support in the underlying infrastructure (for persistence)

Installation

Add the Helm Repository

helm repo add l4gdev https://l4gdev.github.io/helm-charts
helm repo update

Install the Chart

# Install with default values
helm install chibisafe l4gdev/chibisafe

# Install with custom values
helm install chibisafe l4gdev/chibisafe -f my-values.yaml

# Install in a specific namespace
helm install chibisafe l4gdev/chibisafe -n chibisafe --create-namespace

Install from Source

git clone https://github.com/l4gdev/helm-charts.git
cd helm-charts/charts/chibisafe
helm install chibisafe .

Architecture

This chart deploys Chibisafe as a single pod with three containers:

┌─────────────────────────────────────────────────────┐
│                      Pod                            │
│  ┌─────────────┐ ┌─────────────┐ ┌──────────────┐  │
│  │  Frontend   │ │   Backend   │ │    Caddy     │  │
│  │    :8001    │ │    :8000    │ │     :80      │──┼──→ Service → Ingress
│  └─────────────┘ └─────────────┘ └──────────────┘  │
│                        │                           │
│                        ↓                           │
│              ┌─────────────────┐                   │
│              │      PVCs       │                   │
│              │ database/uploads│                   │
│              └─────────────────┘                   │
└─────────────────────────────────────────────────────┘
  • Frontend: Next.js web interface (port 8001)
  • Backend: API server handling uploads and data (port 8000)
  • Caddy: Internal reverse proxy routing requests (port 80)

Configuration

Common Parameters

ParameterDescriptionDefault
nameOverrideOverride chart name""
fullnameOverrideOverride full release name""
replicaCountNumber of replicas1
imagePullSecretsImage pull secrets[]

Frontend Configuration

ParameterDescriptionDefault
frontend.image.repositoryFrontend imagechibisafe/chibisafe
frontend.image.tagFrontend image taglatest
frontend.image.pullPolicyImage pull policyIfNotPresent
frontend.resourcesResource requests/limits{}
frontend.envAdditional environment variables[]
frontend.envFromEnvironment from ConfigMaps/Secrets[]
frontend.extraVolumeMountsAdditional volume mounts[]
frontend.securityContextContainer security context{}

Backend Configuration

ParameterDescriptionDefault
backend.image.repositoryBackend imagechibisafe/chibisafe-server
backend.image.tagBackend image taglatest
backend.image.pullPolicyImage pull policyIfNotPresent
backend.resourcesResource requests/limits{}
backend.envAdditional environment variables[]
backend.envFromEnvironment from ConfigMaps/Secrets[]
backend.extraVolumeMountsAdditional volume mounts[]
backend.securityContextContainer security context{}

Caddy Configuration

ParameterDescriptionDefault
caddy.image.repositoryCaddy imagecaddy
caddy.image.tagCaddy image tag2-alpine
caddy.resourcesResource requests/limits{}

Persistence

ParameterDescriptionDefault
persistence.database.enabledEnable database persistencetrue
persistence.database.storageClassStorage class""
persistence.database.sizeStorage size1Gi
persistence.database.existingClaimUse existing PVC""
persistence.uploads.enabledEnable uploads persistencetrue
persistence.uploads.storageClassStorage class""
persistence.uploads.sizeStorage size10Gi
persistence.uploads.existingClaimUse existing PVC""
persistence.logs.enabledEnable logs persistencefalse
persistence.logs.sizeStorage size1Gi

Service

ParameterDescriptionDefault
service.typeService typeClusterIP
service.portService port80
service.annotationsService annotations{}

Ingress

ParameterDescriptionDefault
ingress.enabledEnable ingressfalse
ingress.classNameIngress class name""
ingress.annotationsIngress annotations{}
ingress.hostsIngress hosts configurationSee values.yaml
ingress.tlsTLS configuration[]

Security

ParameterDescriptionDefault
networkPolicy.enabledEnable network policytrue
podDisruptionBudget.enabledEnable PDBtrue
podDisruptionBudget.minAvailableMinimum available pods1
serviceAccount.createCreate service accounttrue

Pod Settings

ParameterDescriptionDefault
podAnnotationsPod annotations{}
podLabelsPod labels{}
podSecurityContextPod security context{fsGroup: 1000}
nodeSelectorNode selector{}
tolerationsTolerations[]
affinityAffinity rules{}
extraVolumesAdditional volumes[]

Examples

Basic Installation with Ingress

# values-production.yaml
ingress:
  enabled: true
  className: nginx
  annotations:
    cert-manager.io/cluster-issuer: letsencrypt-prod
  hosts:
    - host: files.example.com
      paths:
        - path: /
          pathType: Prefix
  tls:
    - secretName: chibisafe-tls
      hosts:
        - files.example.com

persistence:
  uploads:
    size: 100Gi
helm install chibisafe l4gdev/chibisafe -f values-production.yaml

With Resource Limits

frontend:
  resources:
    requests:
      cpu: 100m
      memory: 128Mi
    limits:
      cpu: 500m
      memory: 512Mi

backend:
  resources:
    requests:
      cpu: 200m
      memory: 256Mi
    limits:
      cpu: 1000m
      memory: 1Gi

caddy:
  resources:
    requests:
      cpu: 50m
      memory: 64Mi
    limits:
      cpu: 200m
      memory: 128Mi

Using Existing PVCs

persistence:
  database:
    enabled: true
    existingClaim: my-existing-database-pvc
  uploads:
    enabled: true
    existingClaim: my-existing-uploads-pvc

With Custom Environment Variables

backend:
  env:
    - name: NODE_ENV
      value: production
  envFrom:
    - secretRef:
        name: chibisafe-secrets

Post-Installation

Default Credentials

The default credentials for a new Chibisafe installation are:

  • Username: admin
  • Password: admin

Important: Change these immediately after first login!

Accessing Chibisafe

If using port-forward:

kubectl port-forward svc/chibisafe 8080:80
# Open http://localhost:8080

Configuration via Dashboard

Most Chibisafe settings can be configured through the web dashboard at Dashboard → Settings, including:

  • Site name and branding
  • Upload limits and allowed file types
  • User registration settings
  • S3/Object storage configuration
  • Rate limiting

Upgrading

helm repo update
helm upgrade chibisafe l4gdev/chibisafe

Uninstalling

helm uninstall chibisafe

Note: PVCs are not deleted automatically. To remove all data:

kubectl delete pvc -l app.kubernetes.io/name=chibisafe

Troubleshooting

View Logs

# Backend logs
kubectl logs -l app.kubernetes.io/name=chibisafe -c backend

# Frontend logs
kubectl logs -l app.kubernetes.io/name=chibisafe -c frontend

# Caddy logs
kubectl logs -l app.kubernetes.io/name=chibisafe -c caddy

Check Pod Status

kubectl get pods -l app.kubernetes.io/name=chibisafe
kubectl describe pod -l app.kubernetes.io/name=chibisafe

Links

License

This chart is licensed under the MIT License.

Chibisafe itself is licensed under its own terms - see the Chibisafe repository for details.

Deploy chibisafe with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has chibisafe 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 chartchibisafe is pinned at v0.1.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