change setting again

markdown-link-rule-dess
Felix Ableitner 2023-11-06 12:54:42 +01:00
parent 66229ab902
commit d6b3d82300
2 changed files with 19 additions and 13 deletions

View File

@ -49,13 +49,16 @@
#
# Requires pict-rs 0.5
image_proxy: false
# Don't store preview images for external links in pict-rs. Enabling this setting reduces
# storage usage. It may also be necessary in certain countries which don't allow copying images
# from newspaper articles, but only allow hotlinking.
# By default the thumbnails for external links are stored in pict-rs. This ensures that they
# can be reliably retrieved and can be resized using pict-rs APIs. However it also increases
# storage usage. In case this is disabled, the Opengraph image is directly returned as
# thumbnail.Note that it still gets proxied through the local instance if `image_proxy` is
# enabled.
#
# If this setting is enabled, the Opengraph image is directly returned as thumbnail. Note that
# it still gets proxied through the local instance if `image_proxy` is enabled.
disable_external_link_previews: false
# In some countries it is forbidden to copy preview images from newspaper articles and only
# hotlinking is allowed. If that is the case for your instance, make sure that `image_proxy` and
# `cache_external_link_previews` are both disabled.
cache_external_link_previews: true
}
# Email sending configuration. All options except login/password are mandatory
email: {

View File

@ -87,14 +87,17 @@ pub struct PictrsConfig {
#[default(false)]
pub image_proxy: bool,
/// Don't store preview images for external links in pict-rs. Enabling this setting reduces
/// storage usage. It may also be necessary in certain countries which don't allow copying images
/// from newspaper articles, but only allow hotlinking.
/// By default the thumbnails for external links are stored in pict-rs. This ensures that they
/// can be reliably retrieved and can be resized using pict-rs APIs. However it also increases
/// storage usage. In case this is disabled, the Opengraph image is directly returned as
/// thumbnail.Note that it still gets proxied through the local instance if `image_proxy` is
/// enabled.
///
/// If this setting is enabled, the Opengraph image is directly returned as thumbnail. Note that
/// it still gets proxied through the local instance if `image_proxy` is enabled.
#[default(false)]
pub disable_external_link_previews: bool,
/// In some countries it is forbidden to copy preview images from newspaper articles and only
/// hotlinking is allowed. If that is the case for your instance, make sure that `image_proxy` and
/// `cache_external_link_previews` are both disabled.
#[default(true)]
pub cache_external_link_previews: bool,
}
#[derive(Debug, Deserialize, Serialize, Clone, SmartDefault, Document)]