Why Nostr? What is Njump?
2025-04-18 14:56:02

mleku on Nostr: #realy #devstr #progressreport i slept on it and figured out the best way to do this ...

#realy #devstr #progressreport

i slept on it and figured out the best way to do this was to have the relay check for configuration and if it's missing, it generates a first time password that you can use with the web UI at /api and you must add an npub to the admins list, after which the admin functions require auth from this

i also put the nurl CLI tool and the nauth tool that can generate expiring authorization tokens, which can then be used to do any function that is authorised on the HTTP UI

gotta finish up make sure all the HTTP endpoints actually are working and then i'm moving to putting the websocket in

yesterday i finally got the router i wrote working, so the main application is very lightweight... ah yes i need to make some build tags and separate files to be able to disable the apis once they are working, getting them initialised is a one liner in the main, but could be in a separate function in a separate file that can be masked out to disable it
Author Public Key
npub1fjqqy4a93z5zsjwsfxqhc2764kvykfdyttvldkkkdera8dr78vhsmmleku