Add content in the configuration section of the README. Create a npm command called authelia

pull/12/head
Clement Michaud 2017-01-29 16:55:23 +01:00
parent b1045dc075
commit 7008d9d0bb
3 changed files with 16 additions and 0 deletions

View File

@ -79,6 +79,12 @@ Paste the link in your browser and you should be able to reset the password.
## Documentation
### Configuration
The configuration of the server is defined in the file
**configuration.template.yml**. All the details are documented there.
You can specify another configuration file by giving it as first argument of
**Authelia**.
authelia config.custom.yml
### API documentation
There is a complete API documentation generated with

View File

@ -3,6 +3,9 @@
"version": "1.0.11",
"description": "2-factor authentication server using LDAP as 1st factor and TOTP or U2F as 2nd factor",
"main": "src/index.js",
"bin": {
"authelia": "src/index.js"
},
"scripts": {
"test": "./node_modules/.bin/mocha --recursive test/unitary",
"unit-test": "./node_modules/.bin/mocha --recursive test/unitary",

7
src/index.js 100644 → 100755
View File

@ -1,3 +1,4 @@
#! /usr/bin/env node
process.env.NODE_TLS_REJECT_UNAUTHORIZED = "0";
@ -10,6 +11,12 @@ var nedb = require('nedb');
var YAML = require('yamljs');
var config_path = process.argv[2];
if(!config_path) {
console.log('No config file has been provided.');
console.log('Usage: authelia <config>');
process.exit(0);
}
console.log('Parse configuration file: %s', config_path);
var yaml_config = YAML.load(config_path);