Implements the proposed nostr-media-spec.
This server handles both uploads and downloads of media content. By default the uploaded media is stored on the local filesystem, but the code is written with a pluggabe storage interface to allow additional storage providers.
- Getting host info at https:///.well-known/nostr.json
- Uploading media
- Getting media
- Getting media: filename optional
- Getting media: type optional
- Getting media: potential query params (size, aspect ratio)
- In one terminal, start the server on port 9000:
make run
- In a second terminal, upload a test image:
cd curls && ./upload.sh
See config.yml
for configuration options.