In the last two days, I’ve had to solve a rather interesting problem. I have an nginx instance proxying various servers, and I need to be able to add an authentication layer that will authenticate people with an external source (such as a web app) and allow them to pass through the proxy if they have an account on the authentication source (the web app, in this example). Exploring the requirements
![Writing an nginx authentication module in Lua - Stavros' Stuff](https://cdn-ak-scissors.b.st-hatena.com/image/square/13bbca4ee8e671f9c71d9cc62b782f02c6a7330f/height=288;version=1;width=512/https%3A%2F%2Fwww.stavros.io%2Fstatic%2Fimages%2Ffavicons%2Fog-image.jpg%3Fh%3D3375145f)