nginScript – A New and Powerful Way to Configure NGINX

2016-03-02 KENNETH 0

nginScript – A New and Powerful Way to Configure NGINX The following is adapted from a presentation given by Igor Sysoev at nginx.conf 2015, held in San Francisco in September. You can view the video of the nginScript talk on YouTube. Table of Contents 0:27 nginScript Beginnings 1:30 The Lua Module 2:23 Choosing JavaScript 3:33 JavaScript VMs 4:04 V8 Issues 6:15 The nginScript VM 7:51 The State of nginScript 9:10 The nginScript Interface 9:58 $r.response 11:34 Questions and Answers 0:27 nginScript Beginnings Since the start of NGINX’s development, I’ve wanted NGINX to have the ability to run scripts inside the server. I first attempted to implement this capability in 2005. At that time I tried to embed Perl – which was, and still is, my favorite language for general scripting. Perl has some drawbacks, however, that make it unsuitable as [ more… ]