I use Apache2 + SQLite for the authentication, here is an example configuration: https://gist.github.com/aurorabbit/36c509ddeeba2b97c3019534f...
I use buildroot for creating a minimal linux install.