What is Nostr?
mleku
npub1fjq…leku
2025-02-18 19:28:51

mleku on Nostr: #realy v1.8.2 just dropped the main new feature is now the admin HTTP ports use ...

#realy v1.8.2 just dropped

the main new feature is now the admin HTTP ports use nip-98 authentication instead of HTTP-Basic, and there is a new command in`cmd/curdl` that expects your prescrideb nsec in NOSTR_SECRET_KEY environment variable and it can do`get` for commands that return data (like export) and`post` lets you push up a`jsonl` file to dump a load of events into the database

took me a while to figure out how to get the upload working, some glitch with http and indefinite file sizes so i just discarded the ability to feed it events from localhost

there is ways to do indefinite sized uploads via http but they are complicated and they are simple to do via websockets, so if i feel the need to enable piping stuff up to realy, it will require a new route that upgrades to websocket to do this, most probably... or http/2 or something, idgaf, isn't what i already set it up to do, just wanted working import/export with nostr native auth for all admin

the`get` mode lets you issue commands via http path and parameters, nothing special has been implemented yet, no fancy swagger openapi bullcrap, and probably never will be, but it has proper security for authentication of the admin remote access of the features it already has

now i can move to doing the http API i dreamed up which i will be collaborating with some client devs in the future to integrate, because for simple queries and uploads, http is far less code and bullshit than having to also deal with sockets, and it makes it really easy for any standard web dev to build an app that talks to this API because it's not some kooky hybrid chimera big ball of mud

#devstr #progressreport
Author Public Key
npub1fjqqy4a93z5zsjwsfxqhc2764kvykfdyttvldkkkdera8dr78vhsmmleku