An authentication server for nginx's http_auth_request module
$ luarocks install postgres-auth-server
This is an authentication server, all users are stored in a Postgresql table, and there's a web interface.
Administrators can set user's passwords, and require a user to change their password on their next login. Users can change their own passwords.
See the homepage for details.