Follow

this horrible thing I (discovered|made) a while ago that could help re: Probably bad retro web idea 

@vkc sooo
`socat TCP4-LISTEN:1312,reuseaddr,fork EXEC:/path/to/script`
lets you pipe a port and run a shell script off it kinda CGI-style
but for a whole web server
(the stdio for the process is the http connection)
github.com/ckiee/nixfiles/tree
aldhy.tailnet.ckie.dev

it follows that theme of horrible, insecure, never should be done in production but is Simple and mostly reuses existing things

· · Web · 0 · 0 · 1
Sign in to participate in the conversation
Pixietown

Small server part of the pixie.town infrastructure. Registration is closed.