Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

kazana-config

Package Overview
Dependencies
Maintainers
1
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

kazana-config

Kazana core module for environment based configuration

  • 2.0.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
decreased by-100%
Maintainers
1
Weekly downloads
 
Created
Source

kazana-config

Kazana core module for environment based configuration

NPM version Build Status Coverage Status

Usage

// npm install --save git+ssh://git@github.com:eHealthAfrica/kazana-config.git
var config = require('kazana-config')

Defaults can be passed

var config = require('kazana-config').defaults({
  couchdbUrl: 'http://localhost:1234'
})

Parse 12factor-config compatible configurations

var config = require('kazana-config').parse({
  funk: {
    env: 'KAZANA_FUNK',
    default: 'boogie woogie'
  }
})

// config.funk set to `KAZANA_FUNK`, falls back to 'boogie woogie'

Settings / Defaults

Kazana can be fully configured using environment variables. Below is a list of all variables used across the services, including their default values where applicable.

Within services, the settings below are accessible at server.settings.app.<setting name>, e.g. sever.settings.app.dbRawData.

Name / EnvDescriptionDefault / Example
kazanaAppPort
KAZANA_APP_PORT
5000
kazanaAccountPort
KAZANA_ACCOUNTS_PORT
5001
kazanaRawDataPort
KAZANA_IMPORTER_PORT
5002
pouchdbAdapter
KAZANA_POUCHDB_ADAPTER
http (Note: only http supperted so far)
pouchdbLeveldb
KAZANA_POUCHDB_LEVELDB_PATH
./.db
pouchdbHttpUrl
KAZANA_POUCHDB_HTTP_URL
http://localhost:5984
pouchdbHttpAdminUser
KAZANA_POUCHDB_HTTP_ADMIN_USER
kazana
pouchdbHttpAdminPass
KAZANA_POUCHDB_HTTP_ADMIN_PASS
secret
dbRawData
KAZANA_DB_RAW_DATA
Name of database containing submitted raw data kazana-raw-data
dbIntegratedData
KAZANA_DB_INTEGRATED_DATA
Name of database containing integrated data kazana-raw-data
emailService
KAZANA_EMAIL_SERVICE
Nodemailer Email Service gmail
emailAuthUsername
KAZANA_EMAIL_AUTH_USERNAME
Nodemailer Email Service Username e.g. joe@example.com
emailAuthPassword
KAZANA_EMAIL_AUTH_PASSWORD
Nodemailer Email Service Password e.g. secret

Local setup and Testing

git clone git@github.com:eHealthAfrica/kazana-config.git
cd kazana-config
npm install
npm test

Test

Dependency Status devDependency Status

npm test

Credit

Brought to you by eHealth Africa — good tech for hard places.

License

Apache-2.0

Keywords

FAQs

Package last updated on 28 Jul 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc