Skip to main content

Module config

Module config 

Source
Expand description

Configuration types and loader for atrg.toml.

The Config struct is the single source of truth for all framework configuration. It is loaded once at startup by Config::load and then wrapped in an Arc inside AppState.

Structs§

AppConfig
[app] section of atrg.toml.
AuthConfig
[auth] section of atrg.toml.
Config
Root configuration, deserialized from atrg.toml.
DatabaseConfig
[database] section of atrg.toml.
FeedGeneratorConfig
[feed_generator] section of atrg.toml. Present when the server acts as an AT Protocol feed generator.
FirehoseConfig
[firehose] section of atrg.toml. Present when relay firehose consumption is enabled (full com.atproto.sync.subscribeRepos).
JetstreamConfig
[jetstream] section of atrg.toml. Only present when Jetstream consumption is enabled.
LabelerConfig
[labeler] section of atrg.toml. Present when the server acts as an AT Protocol labeler.
RateLimitTomlConfig
[rate_limit] section of atrg.toml.

Functions§

load_app_config
Load an app-specific configuration section from atrg.toml.
load_app_config_from_path
Load an app-specific configuration section from a specific TOML file path.