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

View File

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