authbox.configschemacommon

1.0.0 • Public • Published

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,
  },
});

Readme

Keywords

none

Package Sidebar

Install

npm i authbox.configschemacommon

Weekly Downloads

3

Version

1.0.0

License

MIT

Unpacked Size

60.3 kB

Total Files

27

Last publish

Collaborators

  • floyd_at_hampton