Security News
Node.js EOL Versions CVE Dubbed the "Worst CVE of the Year" by Security Experts
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
kazana-config
Advanced tools
Kazana core module for environment based configuration
// 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'
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.dbDataReports
.
Name / Env | Description | Default / 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://loca | |
pouchdbHttpAdminUser KAZANA_POUCHDB_HTTP_ADMIN_USER | kazana | |
pouchdbHttpAdminPass KAZANA_POUCHDB_HTTP_ADMIN_PASS | secret | |
dbDataReports KAZANA_DB_DATA_REPORTS | Name of database holding the imported data reports | kazana-raw-data |
dbIntegratedData KAZANA_DB_INDICATORS | Name of database holding the imported data reports | 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 |
git clone git@github.com:eHealthAfrica/kazana-config.git
cd kazana-config
npm install
npm test
npm test
Brought to you by eHealth Africa — good tech for hard places.
Apache-2.0
FAQs
Kazana core module for configuration
The npm package kazana-config receives a total of 18 weekly downloads. As such, kazana-config popularity was classified as not popular.
We found that kazana-config demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?
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.
Security News
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
Security News
cURL and Go security teams are publicly rejecting CVSS as flawed for assessing vulnerabilities and are calling for more accurate, context-aware approaches.
Security News
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.