Skip to content

Instantly share code, notes, and snippets.

View fcofdez's full-sized avatar

Francisco Fernández Castaño fcofdez

View GitHub Profile
location /webhook/17cbb307-94ec-446b-a17b-ab82594c974c {
if ($request_method != 'POST') {
return 405;
}
content_by_lua 'ngx.print(io.popen("/path/to/script.sh"):read("*a"))';
}