1.0.0 • Published 4 years ago

authbox.configschemacommon v1.0.0

Weekly downloads
2
License
MIT
Repository
github
Last release
4 years ago

AuthBox.ConfigSchemaCommon

Common config schema components of AuthBox

Available schemas

  1. agentKeepAlive - Keep alive settings for HTTP(S) connections
  2. apiClient - For consumer of internal apis
  3. apiServerAuth - Auth settings for api servers
  4. hostingEnvironment - Environment settings for service
  5. loggerSettings - Settings for logging
  6. 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,
  },
});
1.0.0

4 years ago