diff options
Diffstat (limited to 'config/description.exs')
| -rw-r--r-- | config/description.exs | 43 | 
1 files changed, 43 insertions, 0 deletions
| diff --git a/config/description.exs b/config/description.exs index 2b30f8148..4a5d5f2ea 100644 --- a/config/description.exs +++ b/config/description.exs @@ -1874,6 +1874,7 @@ config :pleroma, :config_description, [          suggestions: [            redirect_on_failure: false,            max_body_length: 25 * 1_048_576, +          max_read_duration: 30_000,            http: [              follow_redirect: true,              pool: :media @@ -1895,6 +1896,11 @@ config :pleroma, :config_description, [                  "specified length. It is validated with the `content-length` header and also verified when proxying."            },            %{ +            key: :max_read_duration, +            type: :integer, +            description: "Timeout (in milliseconds) of GET request to remote URI." +          }, +          %{              key: :http,              label: "HTTP",              type: :keyword, @@ -1942,6 +1948,43 @@ config :pleroma, :config_description, [    },    %{      group: :pleroma, +    key: :media_preview_proxy, +    type: :group, +    description: "Media preview proxy", +    children: [ +      %{ +        key: :enabled, +        type: :boolean, +        description: +          "Enables proxying of remote media preview to the instance's proxy. Requires enabled media proxy." +      }, +      %{ +        key: :thumbnail_max_width, +        type: :integer, +        description: +          "Max width of preview thumbnail for images (video preview always has original dimensions)." +      }, +      %{ +        key: :thumbnail_max_height, +        type: :integer, +        description: +          "Max height of preview thumbnail for images (video preview always has original dimensions)." +      }, +      %{ +        key: :image_quality, +        type: :integer, +        description: "Quality of the output. Ranges from 0 (min quality) to 100 (max quality)." +      }, +      %{ +        key: :min_content_length, +        type: :integer, +        description: +          "Min content length to perform preview, in bytes. If greater than 0, media smaller in size will be served as is, without thumbnailing." +      } +    ] +  }, +  %{ +    group: :pleroma,      key: Pleroma.Web.MediaProxy.Invalidation.Http,      type: :group,      description: "HTTP invalidate settings", | 
