This is an example SQLite schema and httpd.conf
for per-share user authentication, using htpasswd
for bcrypt.
schema.sql
creates the tables for the database.
httpd.conf
has an example Apache2 configuration.
add-user.lua
is a small script for creating a user and granting them access to the Share with ID 1.
The script breaks when given a password with a single quote ('
), however io.popen doesn't allow multiple commands, so the impact is limited to an invalid htpasswd
invocation.