The njs scripting language
njs is a subset of the JavaScript language that allows extending nginx functionality. It can be used to: create complex access control and security checks in njs before a request reaches an upstream server; manipulate response headers; and write flexible asynchronous content handlers and filters.