Common config schema components of AuthBox
- 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
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,
},
});