debug: false
}
# Pictrs image server configuration.
- pictrs_config: {
+ pictrs: {
# Address where pictrs is available (for image hosting)
url: "http://pictrs:8080/"
# Set a custom pictrs API key. ( Required for deleting images )
pub federation: FederationConfig,
/// Pictrs image server configuration.
#[default(Some(Default::default()))]
- pub(crate) pictrs_config: Option<PictrsConfig>,
+ pub(crate) pictrs: Option<PictrsConfig>,
#[default(Default::default())]
pub captcha: CaptchaConfig,
/// Email sending configuration. All options except login/password are mandatory
pub struct PictrsConfig {
/// Address where pictrs is available (for image hosting)
#[default(Url::parse("http://pictrs:8080").expect("parse pictrs url"))]
- #[doku(example = "Url::parse(\"http://pictrs:8080\").unwrap()")]
+ #[doku(example = "http://pictrs:8080")]
pub url: Url,
/// Set a custom pictrs API key. ( Required for deleting images )