I want to use signald via web. signald is an application that provides a unix socket and communicates in JSON.
I can use nginx to connect to the unix socket via HTTP(S). But signald does not understand HTTP, only pure JSON. It produces errors like the following:
com.fasterxml.jackson.core.JsonParseException: Unrecognized token 'GET': was expecting (JSON String, Number, Array, Object or token 'null', 'true' or 'false')
at [Source: (String)"GET / HTTP/1.0"; line: 1, column: 4]
Is there a way to send JSON to my web-forwarded unix socket, just like any API that is served by a web server? I imagine something like nginx <-> http wrapper <-> unix socket.