What is Nostr?
Nicolas Martyanoff /
npub1dkg…54dt
2024-11-30 16:20:57

Nicolas Martyanoff on Nostr: I've settled on HTTP over UNIX sockets for the control API of Boulevard. It simple ...

I've settled on HTTP over UNIX sockets for the control API of Boulevard. It simple and secure (UNIX sockets are files, you can enforce ownership and permissions) and the #Go standard library supports it. Great.

Testing with Curl is puzzling. You can set --unix-socket, but sending a request to http:/status will actually set "Host: status" and use the path "/" which is completely incorrect. Using http://localhost/status will yield the expected result though. Go figure.
Author Public Key
npub1dkg70vzk4vvfsc5cup9gkfu2tcrs5unysl7npfvegf78nkuswr5skh54dt