#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
haha, no, i follow you, so you have access to wss://mleku.realy.lol - this is my deployment of the relay i am building
realy has a simple built-in access control that is based on designating owner pubkeys and then if it can who i follow, and who my follows follow, every npub it can find out of those it whitelists for access
it also has a spider that tries to find all of those lists and the latest versions if they update, every hour it pokes at two random relays it finds from all the relay lists stored in the database
of course you can zap me for the work but i don't see the sense in that unless you are actually using it for your own business or purposes
if you want to run your own relay, it's a good option, IMO, but there is some serious quirks with AUTH with most of the clients out there, there is issues being raised on the nips repo and such but i personally have turned my back on most of the well known nostr devs, because they are dumbass, brainwashed, superstitious and cliquey little upstarts who can't even write a text parser
Showing page 1 of
1 pages