blossom-server 4.4.1 sometimes stored a wrong blob size (0 or partial). 4.x ignored it when serving; 6.x sends it as Content-Length, so those blobs come back empty or truncated after migrating. Add scripts/fix-blossom-sizes.py to correct sizes from the files on disk (only for files that hash to their name) and document running it after the upgrade. Found on a copy of podsteadr.atobitcoin.io's data: 4 of 25 blobs, all small txt/jpeg; every blob verified byte-for-byte afterwards. Also set media.requirePubkeyInRule explicitly to silence v6's startup warning. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
51 lines
1.4 KiB
YAML
51 lines
1.4 KiB
YAML
# blossom-server (v6.x) configuration for podsteadr.
|
|
# Uploads require a signed nostr auth event (BUD-02, kind 24242);
|
|
# reads are public so podcast apps can fetch enclosures.
|
|
#
|
|
# Compose sets BLOSSOM_REQUIRE_CONFIG=1: without this file v6 would boot on
|
|
# its schema defaults, whose rules prune video after 1 week of no access.
|
|
|
|
# Empty = use the request's Host header (podsteadr is reached by several
|
|
# hostnames: the raw IP, a domain behind nginx/Cloudflare, Tailscale).
|
|
publicDomain: ""
|
|
|
|
database:
|
|
path: data/sqlite.db
|
|
|
|
storage:
|
|
backend: local
|
|
local:
|
|
dir: ./data/blobs
|
|
removeWhenNoOwners: false
|
|
# Rules are both the upload allowlist (unmatched MIME types get 415) and
|
|
# the prune policy: a blob is deleted once it goes unaccessed for longer
|
|
# than `expiration`. v6 has no "never", so podcast media gets 100 years.
|
|
rules:
|
|
- type: "*"
|
|
expiration: 100 years
|
|
|
|
upload:
|
|
enabled: true
|
|
requireAuth: true
|
|
requirePubkeyInRule: false
|
|
maxSize: 2147483648 # 2 GB — matches the upload wizard's cap
|
|
|
|
delete:
|
|
requireAuth: true
|
|
|
|
# Not used by podsteadr — kept off to minimise surface (mirror makes the
|
|
# server fetch arbitrary URLs; media runs ffmpeg/sharp on uploads).
|
|
mirror:
|
|
enabled: false
|
|
media:
|
|
enabled: false
|
|
requirePubkeyInRule: true # explicit, or v6 warns at startup
|
|
list:
|
|
enabled: false
|
|
landing:
|
|
enabled: false
|
|
dashboard:
|
|
enabled: false
|
|
report:
|
|
enabled: false
|