NabismoPrime on Nostr: Nice! I've been toying with this idea as a solution for a while as a solution to long ...
Nice! I've been toying with this idea as a solution for a while as a solution to long term storage. Letting users export their events before deletion but figured I would need to make some sort of web UI as most people wont use curl or wget, but hopefully I'm wrong.
As far as pushing a jsonl over http, you should still be able to use curl using a post method, something like curl -X POST -F "file=@/path//file.jsonl"
http://remote_host/upload_endpointPublished at
2024-10-16 00:04:09Event JSON
{
"id": "b39b68b4e1c9922742280119d14d37910a38524ad10b2a1448dca20bd3c951a6",
"pubkey": "4503baa127bdfd0b054384dc5ba82cb0e2a8367cbdb0629179f00db1a34caacc",
"created_at": 1729037049,
"kind": 1,
"tags": [
[
"e",
"c5eb0997d42d458b013a3842632ebbe6e7f5f8715ea6e14d6d0b47b85c0eabba",
"",
"root"
],
[
"e",
"c5eb0997d42d458b013a3842632ebbe6e7f5f8715ea6e14d6d0b47b85c0eabba",
"",
"reply"
],
[
"p",
"4c800257a588a82849d049817c2bdaad984b25a45ad9f6dad66e47d3b47e3b2f",
"",
"mention"
],
[
"client",
"noStrudel",
"31990:266815e0c9210dfa324c6cba3573b14bee49da4209a9456f9484e5106cd408a5:1686066542546"
]
],
"content": "Nice! I've been toying with this idea as a solution for a while as a solution to long term storage. Letting users export their events before deletion but figured I would need to make some sort of web UI as most people wont use curl or wget, but hopefully I'm wrong.\n\nAs far as pushing a jsonl over http, you should still be able to use curl using a post method, something like curl -X POST -F \"file=@/path//file.jsonl\" http://remote_host/upload_endpoint\n",
"sig": "d06ed285342648af5e0ef2947722cd4ba6fd8597047dd5f7f1eb8e651b955695da1f936fcb6861bf56ff9c61bc6479abd2e3fcef602389ea7db084769cefa2f4"
}