mirror of
https://github.com/0rangebananaspy/authelia.git
synced 2024-09-14 22:47:21 +07:00
Add content in the configuration section of the README. Create a npm command called authelia
This commit is contained in:
parent
b1045dc075
commit
7008d9d0bb
|
@ -79,6 +79,12 @@ Paste the link in your browser and you should be able to reset the password.
|
||||||
|
|
||||||
## Documentation
|
## Documentation
|
||||||
### Configuration
|
### 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
|
### API documentation
|
||||||
There is a complete API documentation generated with
|
There is a complete API documentation generated with
|
||||||
|
|
|
@ -3,6 +3,9 @@
|
||||||
"version": "1.0.11",
|
"version": "1.0.11",
|
||||||
"description": "2-factor authentication server using LDAP as 1st factor and TOTP or U2F as 2nd factor",
|
"description": "2-factor authentication server using LDAP as 1st factor and TOTP or U2F as 2nd factor",
|
||||||
"main": "src/index.js",
|
"main": "src/index.js",
|
||||||
|
"bin": {
|
||||||
|
"authelia": "src/index.js"
|
||||||
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"test": "./node_modules/.bin/mocha --recursive test/unitary",
|
"test": "./node_modules/.bin/mocha --recursive test/unitary",
|
||||||
"unit-test": "./node_modules/.bin/mocha --recursive test/unitary",
|
"unit-test": "./node_modules/.bin/mocha --recursive test/unitary",
|
||||||
|
|
7
src/index.js
Normal file → Executable file
7
src/index.js
Normal file → Executable file
|
@ -1,3 +1,4 @@
|
||||||
|
#! /usr/bin/env node
|
||||||
|
|
||||||
process.env.NODE_TLS_REJECT_UNAUTHORIZED = "0";
|
process.env.NODE_TLS_REJECT_UNAUTHORIZED = "0";
|
||||||
|
|
||||||
|
@ -10,6 +11,12 @@ var nedb = require('nedb');
|
||||||
var YAML = require('yamljs');
|
var YAML = require('yamljs');
|
||||||
|
|
||||||
var config_path = process.argv[2];
|
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);
|
console.log('Parse configuration file: %s', config_path);
|
||||||
|
|
||||||
var yaml_config = YAML.load(config_path);
|
var yaml_config = YAML.load(config_path);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user