Go implementation of Blossom Server
Running instance at cdn.sebdev.io. Currently there is no frontend, but you can use the instance with any Blossom client, like the awesome Bouquet
BUDs Implementation Status
- set which pubkey(s) can upload/get blobs
- set which mime-type(s) are allowed (i.e. pdf, jpeg)
- set upload max file limit
- edit the config.yml file (use config.yml.example as base):
- set admin_pubkey to the pubkey you want to have admin privileges. The admin can update the server settings: pubkey access, mime types, file size, etc.
- set api_addr to the address where you want the CDN listening. If deploying behind a reverse proxy, this value could be left as localhost:8000.
- set cdn_url to the domain where you will serve the CDN, i.e. https://cdn.sebdev.io. This value is used when listing blobs, it is prepended to the blob hash: ${cdn_url}/hash.
- clone repo
- build docker image docker build -t blossom .
- run container docker run --rm --name blossom -v ${PWD}/config.yml:/config.yml -v ${PWD}/db:/db -p 8000:8000 blossom