Skip to main content
zerotal

Documentation


Documentation / @zerotal/core / health / HealthConfigShape

Interface: HealthConfigShape

Defined in: health/Health.ts:150

The health config, authored under the health key of config/app.ts.

Properties

enabled?

optional enabled?: boolean

Defined in: health/Health.ts:152

Serve the endpoint. Default: on outside production, off in production.


path?

optional path?: string

Defined in: health/Health.ts:154

Route path. Default: /health.


secret?

optional secret?: string

Defined in: health/Health.ts:156

Shared secret. Required in production; supplied via ?key= or X-Health-Key.


showDetails?

optional showDetails?: boolean

Defined in: health/Health.ts:158

Include per-check details. Set false for a bare { status } body. Default: true.