Crate mas_config

Source
Expand description

Application configuration logic

Structs§

AccountConfig
Configuration section to configure features related to account management
AppConfig
Partial configuration actually used by the server
BrandingConfig
Configuration section for tweaking the branding of the service
CaptchaConfig
Configuration section to setup CAPTCHA protection on a few operations
ClientConfig
An OAuth 2.0 client configuration
ClientsConfig
List of OAuth 2.0/OIDC clients config
DatabaseConfig
Database connection configuration
EmailConfig
Configuration related to sending emails
ExperimentalConfig
Configuration sections for experimental options
HttpConfig
Configuration related to the web server
HttpListenerConfig
Configuration of a listener
HttpTlsConfig
Configuration related to TLS on a listener
MatrixConfig
Configuration related to the Matrix homeserver
MetricsConfig
Configuration related to exporting metrics
PasswordsConfig
User password hashing config
PolicyConfig
Application secrets
RateLimitingConfig
Configuration related to sending emails
RootConfig
Application configuration root
SecretsConfig
Application secrets
SyncConfig
Partial config used by the mas-cli config sync command
TelemetryConfig
Configuration related to sending monitoring data
TemplatesConfig
Configuration related to templates
TracingConfig
Configuration related to exporting traces
UpstreamOAuth2ClaimsImports
How claims should be imported
UpstreamOAuth2Config
Upstream OAuth 2.0 providers configuration
UpstreamOAuth2EmailImportPreference
What should be done with the email attribute
UpstreamOAuth2Provider
Configuration for one upstream OAuth 2 provider.

Enums§

CaptchaServiceKind
Which service should be used for CAPTCHA protection
ClientAuthMethodConfig
Authentication method used by clients
EmailSmtpMode
Encryption mode to use
EmailTransportKind
What backend should be used when sending emails
HomeserverKind
The kind of homeserver it is.
HttpBindConfig
Configuration of a single listener
HttpResource
HTTP resources to mount
MetricsExporterKind
Exporter to use when exporting metrics
PasswordAlgorithm
A hashing algorithm
PgSslMode
Options for controlling the level of protection provided for PostgreSQL SSL connections.
Propagator
Propagation format for incoming and outgoing requests
TracingExporterKind
Exporter to use when exporting traces
UnixOrTcp
Kind of socket
UpstreamOAuth2DiscoveryMode
How to discover the provider’s configuration
UpstreamOAuth2ImportAction
How to handle a claim
UpstreamOAuth2PkceMethod
Whether to use proof key for code exchange (PKCE) when requesting and exchanging the token.
UpstreamOAuth2ResponseMode
The response mode we ask the provider to use for the callback
UpstreamOAuth2TokenAuthMethod
Authentication methods used against the OAuth 2.0 provider

Traits§

ConfigurationSection
Trait implemented by all configuration section to help loading specific part of the config and generate the sample config.
ConfigurationSectionExt
Extension trait for ConfigurationSection to allow extracting the configuration section from a Figment or return the default value if the section is not present.