TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Show HN: Neh – Execute any script or program from Nginx location directives

27 pointsby oap_bramabout 5 years ago

8 comments

cnorthwoodabout 5 years ago
And we've come back round full circle from CGI scripts, although separating out headers and body on different fds sounds neat
评论 #22671528 未加载
评论 #22673131 未加载
评论 #22670697 未加载
h43zabout 5 years ago
&quot;When I searched the first time, most of the answers that I found revolved around using things like “FastCGI with PHP” . I wasn’t gonna use PHP to call a bash script, that would be overdoing it probably.&quot;<p>FYI. You don&#x27;t have to use PHP to make use of FastCGI. You can simply use something like fcgiwrap (apt-installable on debian) and use it in Nginx.
maalloocabout 5 years ago
I want to scream out: Why the f would you want to do that?
评论 #22670737 未加载
ficklepickleabout 5 years ago
This is awesome! Thanks for sharing it. I, too, have unintentionally recreated existing technologies (a unix util, pass, in my case).<p>I recently built something similar with node + bash scripts. Node basically just verifies the webhook, runs a bash script, on failure it rolls back and emails me.
minhoryangabout 5 years ago
Why are you recreate CGI? over nginx?
评论 #22673990 未加载
VWWHFSfQabout 5 years ago
this is just cgi right. you don&#x27;t need lua
评论 #22671869 未加载
tinus_hnabout 5 years ago
What could possibly go wrong?
dylzabout 5 years ago
Another curl | bash installer that is not even tied to a commit :(
评论 #22673133 未加载
评论 #22670273 未加载