Skip to content

Deployment

Run the scripts from src/storage.

Script Purpose
deploy/scripts/build.sh Build images
deploy/scripts/up.sh Build, create keys and start
deploy/scripts/storage.sh Command line
deploy/scripts/blossom.sh Start the media server
deploy/scripts/logs.sh Follow logs
deploy/scripts/down.sh Stop everything except the media server. Keeps data
deploy/scripts/purge.sh --yes Delete keys and data
deploy/scripts/k8s-deploy.sh Install on Kubernetes

Stop the media server first, as shown in Getting Started.

Harbor

The stack starts its own registry. Set HARBOR_URL, HARBOR_USER and HARBOR_PASSWORD before starting to use Harbor instead. Create the public project assets there.

Kubernetes

KUBE_CONTEXT=my-cluster HARBOR_URL=https://harbor.example REPO=registry.example/ deploy/scripts/k8s-deploy.sh
Variable Default Meaning
KUBE_CONTEXT, HARBOR_URL required Context and registry
NAMESPACE storage Namespace
REPO, TAG none, dev Images
AUTHORS the chart's author key Accepted authors

Bridge, df-proxy and Dragonfly peer run on every node. Values such as region, origins, seeds, schedulers, storage and storageClass are in deploy/helm/storage/values.yaml. Peers listen on host port 4001.

Use the relays of SuperRelay

Any Nostr relay that accepts the event kinds works. Set RELAYS of aggregators and bridges, and relays.json of the tools.

Production notes

  • Give each region its bridge with a distinct REGION.
  • List only the authors and origins you trust.
  • Serve origin and media server over TLS.
  • Back up the signer's keystore and its passphrase, the origin, and the media server.