Hacker News new | ask | show | jobs
by pnommensen 3858 days ago
Have you seen nginScript (1)? It's a syntax for embedding snippets of JavaScript in your NGINX configuration. This allows for scripting application logic into standard NGINX config files via a very common and simple language. There's some more details and simple examples at this blog post.

(1) https://www.nginx.com/blog/launching-nginscript-and-looking-...

(disclaimer: I work at NGINX)

1 comments

Okay, but you have to escape this in the Nginx config! Same issue with Lua! And this is terrible!
there is these days _by_lua_block.
Thanks! This is really great:

    content_by_lua_block {
        ngx.say("hello, world")
    }