10.0.1 • Published 4 years ago
hapi-confi v10.0.1
hapi-confi
Set up and run a hapi server using yaml/json files from a config directory
Installation
npm install hapi-confi
Usage
var Hapi = require('hapi');
var hapiConfi = require('hapi-confi');
hapiConfi(Hapi, options, function(err, server, config) {
/* server is a configured hapi server here */
server.start(function(){
});
}
Options
configPath
- relative to 'cwd', defaults to 'conf/'server
- standard hapi server configuration options, see hapi docs for available options.
Major Config items:
before
- list of event handlers to fire on a 'before' eventlogging
- list of reporters to use from 'good.js', the hapi logging libraryreporters
- any 'good-' reporters to use for logging (e.g. good-console)
authPlugins
- list of auth pluginsstrategies
- list of strategies of the form:provider
scheme
mode
options
profile
-
plugins
- list of hapi plugins that will be added to your server through hapi.register()options
- options to pass when the plugin is registered
views
- list of view engines to register with hapi.views()engines
- list of modules to import and pass to viewvalidator
- optional validator library for hapi v19+ (usually '@hapi/joi')
10.0.1
4 years ago
10.0.0
5 years ago
9.0.0
5 years ago
8.2.0
5 years ago
8.1.0
6 years ago
8.0.0
6 years ago
7.5.0
6 years ago
7.4.1
7 years ago
7.4.0
7 years ago
7.3.1
7 years ago
7.3.0
7 years ago
7.2.0
7 years ago
7.1.1
7 years ago
7.1.0
7 years ago
7.0.0
7 years ago
6.1.0
7 years ago
5.2.2
7 years ago
6.0.1
7 years ago
6.0.0
7 years ago
5.2.1
7 years ago
5.2.0
7 years ago
5.1.0
7 years ago
5.0.1
7 years ago
5.0.0
7 years ago
4.2.0
7 years ago
4.1.0
7 years ago
4.0.1
7 years ago
4.0.0
8 years ago
3.1.0
8 years ago
3.0.0
8 years ago
2.3.1
8 years ago
2.3.0
8 years ago
2.2.0
9 years ago
2.1.1
9 years ago
2.1.0
9 years ago
2.0.0
9 years ago
1.0.0
9 years ago
0.3.0
9 years ago
0.2.0
9 years ago
0.1.1
9 years ago
0.1.0
9 years ago
0.0.7
9 years ago
0.0.6
9 years ago
0.0.5
9 years ago
0.0.4
9 years ago
0.0.3
9 years ago
0.0.2
9 years ago
0.0.1
9 years ago