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
Published at
2025-04-18 14:56:02Event JSON
{
"id": "d748b2fdaf722f4e5b53709bce4a4cb379e0ae52419efacd44c75c35f24413a8",
"pubkey": "4c800257a588a82849d049817c2bdaad984b25a45ad9f6dad66e47d3b47e3b2f",
"created_at": 1744988162,
"kind": 1,
"tags": [
[
"t",
"realy"
],
[
"t",
"devstr"
],
[
"t",
"progressreport"
],
[
"client",
"jumble"
]
],
"content": "#realy #devstr #progressreport\n\ni 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\n\ni 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\n\ngotta finish up make sure all the HTTP endpoints actually are working and then i'm moving to putting the websocket in\n\nyesterday 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",
"sig": "b4ea05ab634458c0390a7aa7f4d56f78298f043f0906fdb2102fde98a70a6d5db01d7e31c15d8df3869079e563de0e323f4b0852369110dab0daa9cba254966e"
}