Expand description
Configuration types for the Forge framework.
Each config section lives in its own sub-module for locality. The root
ForgeConfig struct ties them together and owns parsing, env-var
substitution, and cross-field validation.
Re-exports§
pub use cluster::ClusterConfig;pub use signals::SignalsConfig;pub use types::DurationStr;pub use types::SizeStr;
Modules§
Structs§
- Auth
Config - Authentication configuration.
- Cron
Config - Cron scheduler configuration.
- Daemon
Config - Daemon runner configuration.
- Database
Config - Database configuration. One pool, no per-workload isolation: workload
separation belongs at the worker level, not the connection level. The
single-pool contention model and sizing formula are documented at the
runtime side in
forge_runtime::pg::poolmodule docs. - Forge
Config - Root configuration. Loaded from
forge.tomlwith${ENV_VAR}/${VAR-default}substitution. Onlydatabase.urlis required. - Function
Config - Function execution configuration.
- Gateway
Config - Gateway configuration.
- Legacy
Secret - A retired HMAC secret kept around for a bounded window so tokens minted
before rotation still validate. After
valid_untilthe entry is silently dropped at startup and never used for verification — leaked old keys cannot extend their reach indefinitely. - McpConfig
- MCP server configuration.
- Node
Config - Node role configuration.
- Observability
Config - Observability configuration for OTLP telemetry.
- Project
Config - Project metadata.
- Queue
Worker Config - Per-queue worker pool reservation.
- Rate
Limit Settings [rate_limit]configuration.- Realtime
Config - Configuration for the real-time subscription engine and SSE transport.
- Security
Config - Security configuration.
- TlsConfig
- TLS configuration for the gateway listener.
- Worker
Config - Worker configuration.
- Workflow
Config - Workflow scheduler configuration.
Enums§
- JwtAlgorithm
- JWT signing algorithm.
- Node
Role - Available node roles.
- Rate
Limit Mode - Rate-limiter mode selector.
- Signature
Check Mode - Controls how strictly workflow signatures are validated on resume.
Constants§
- CRON_
QUEUE - Queue name reserved for
$cron:<name>jobs. - DEFAULT_
QUEUE - Queue name that drains untagged user jobs.
- WORKFLOWS_
QUEUE - Queue name reserved for the
$workflow_resumejob kind.
Functions§
- substitute_
env_ vars - Substitute environment variables in the format
${VAR_NAME}.