stuff
v1.0.0
Published
HTTPS static file server using LDAP auth
Downloads
8
Maintainers
Readme
A static file server over HTTPS and using LDAP for auth.
Usage:
git clone https://github.com/trentm/stuff.git
cd stuff
npm install
# Create a "config/stuff.json" file, minimally with these entries.
# Note: Yes, I know there are no docs for these yet.
mkdir config
echo '{
"staticDir": "/path/to/dir/to/serve",
"sslKeyFile": "/path/to/ssl-key-file.pem",
"sslCertFile": "/path/to/ssl-cert-file.pem",
"ldap": {
"url": "ldaps://ldap.example.com",
"adminDn": "uid=myapp,ou=users,o=example.com",
"adminPassword": "mypassword",
"searchBase": "ou=users,o=example.com",
"searchFilter": "(uid={{username}})"
}
}' > config/stuff.json
# Run the server.
node server.js
This is still pretty alpha.
License
MIT. See LICENSE.txt
Configuration
ldap.usernameField
(String): The field name in a LDAP user record that indicates the username. This is used to log the username for each request log line.
(obviously missing most of the config vars here)