Product
Socket Now Supports uv.lock Files
Socket now supports uv.lock files to ensure consistent, secure dependency resolution for Python projects and enhance supply chain security.
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')
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.dbRawData
.
Name / Env | Description | Default / Example |
---|---|---|
kazanaAppPort KAZANA_APP_PORT | 5000 | |
backendPort KAZANA_BACKEND_PORT | 4999 | |
adminUser KAZANA_ADMIN_USER | CouchDB admin username | kazana |
adminPass KAZANA_ADMIN_PASS | CouchDB admin password | secret |
backendName KAZANA_BACKEND_NAME | When undefined, defaults to pouchdb-server's built-in "leveldown". Can be set to "couchdb" or any levelup storage back-ends: https://github.com/Level/levelup/wiki/Modules#storage-back-ends | -no default- |
backendLocation KAZANA_BACKEND_LOCATION | Location option as it gets passed to levelup https://github.com/Level/levelup#leveluplocation-options-callback If KAZANA_BACKEND_NAME="couchdb", set the couchdb url without credententials, e.g. "https://my.couch.com" | ./.db |
backendLogFile KAZANA_BACKEND_LOG_FILE | Does not apply if KAZANA_BACKEND_NAME="couchdb" | ./.db/pouch.log |
backendLogLevel KAZANA_BACKEND_LOG_LEVEL | Does not apply if KAZANA_BACKEND_NAME="couchdb" | info |
backendConfigFile KAZANA_BACKEND_CONFIG_FILE | Does not apply if KAZANA_BACKEND_NAME="couchdb" | ./.db/config.json |
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 |
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 0 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.
Product
Socket now supports uv.lock files to ensure consistent, secure dependency resolution for Python projects and enhance supply chain security.
Research
Security News
Socket researchers have discovered multiple malicious npm packages targeting Solana private keys, abusing Gmail to exfiltrate the data and drain Solana wallets.
Security News
PEP 770 proposes adding SBOM support to Python packages to improve transparency and catch hidden non-Python dependencies that security tools often miss.