Closed lpereira closed 10 years ago
There's a proof of concept code for the configuration syntax in the authorization-from-file
branch. The code there is sub-optimal, as it opens a file, scans it until it finds a username/password match, then close it -- for every request.
Implemented on HEAD. File can be specified in lwan.conf and its contents are cached for a minute. Still need to store the password in memory using a safer approach (likely hashing); left a FIXME for that.