|
|
|
|
|
by n42
3928 days ago
|
|
It's funny. Any feature you don't want to use is bloat, but as soon as you need it is a necessity. The way I see it, they can either "bloat" nginx by adding scripting capabilities, or they can bloat it by covering all of the use cases that a scripting engine would otherwise enable, big and small. One simple example that I would love to use this for: generating and adding a UUIDv4 to every request's headers. Doing so would allow us to append the UUID to virtually every log in our entire stack. Right now there is no easy out of box solution for this in nginx. With scripting capabilities it becomes trivial. However, whether or not Lua was enough and adding JavaScript is overkill, I'm not sure. |
|
https://gist.github.com/erikcw/e999e1fb438dbbb91533