authbox.configschemacommon
v1.0.0
Published
Common config schema components of AuthBox
Downloads
6
Readme
AuthBox.ConfigSchemaCommon
Common config schema components of AuthBox
Available schemas
- agentKeepAlive - Keep alive settings for HTTP(S) connections
- apiClient - For consumer of internal apis
- apiServerAuth - Auth settings for api servers
- hostingEnvironment - Environment settings for service
- loggerSettings - Settings for logging
- sequelizeConnection - Settings for sequelize connection
patterns
is also exposed, which includes various common regex patterns
Usage
const common = require('authbox.configschemacommon');
const SimpleSchema = require('simpl-schema').default;
const schema = new SimpleSchema({
loggerSettings: common.schemas.loggerSettings,
hostingEnvironment: common.schemas.hostingEnvironment,
directories: common.schemas.apiClient,
cache: {
database: common.schemas.sequelizeConnection,
},
redirect: {
url: common.patterns.url,
},
});