Config reference
ZinTrust’s config system is split into focused modules under src/config/* and aggregated into a single export surface.
Use this page as a table of contents. For “how do I import config in my app?” start with the config index doc.
How to consume config
Typical usage is:
ts
import { Config } from '@zintrust/core';
const loggerConfig = Config.logger;
const storageConfig = Config.storage;Some features are configuration + runtime singleton (for example SecretsManager). In those cases:
- Read normalized config from
Config.*. - Initialize the runtime singleton once during boot.
Generated list
The list below is derived from src/config/ and is intended to stay in sync as new modules are added.
If anything here disagrees with actual runtime behavior, the authoritative source is the corresponding src/config/*.ts file.
- FileLogWriter.ts
- SecretsManager.ts
- StartupConfigValidator.ts
- app.ts
- broadcast.ts
- cache.ts
- cloudflare.ts
- constants.ts
- database.ts
- env.ts
- features.ts
- index.ts
- logger.ts
- logging/HttpLogger.ts
- logging/KvLogger.ts
- logging/SlackLogger.ts
- mail.ts
- microservices.ts
- middleware.ts
- notification.ts
- queue.ts
- security.ts
- startup.ts
- storage.ts
- type.ts