bndw / nostr-media-server

Implementing michaelhall923/nostr-media-spec

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

nostr-media-server

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.

Status

  • 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)

Quickstart

  1. In one terminal, start the server on port 9000:
make run
  1. In a second terminal, upload a test image:
cd curls && ./upload.sh

See config.yml for configuration options.

About

Implementing michaelhall923/nostr-media-spec


Languages

Language:Go 93.1%Language:Makefile 3.8%Language:Dockerfile 2.3%Language:Shell 0.8%