Increase the :max_body for Rich Media to 5MB

Websites are increasingly getting more bloated with tricks like inlining content (e.g., CNN.com) which puts pages at or above 5MB. This value may still be too low.
This commit is contained in:
Mark Felder 2024-02-11 16:53:21 -05:00
parent ede414094f
commit df0734fcbf
3 changed files with 5 additions and 3 deletions

View File

@ -428,7 +428,8 @@
Pleroma.Web.RichMedia.Parsers.OEmbed
],
failure_backoff: 60_000,
ttl_setters: [Pleroma.Web.RichMedia.Parser.TTL.AwsSignedUrl]
ttl_setters: [Pleroma.Web.RichMedia.Parser.TTL.AwsSignedUrl],
max_body: 5_000_000
config :pleroma, :media_proxy,
enabled: false,

View File

@ -61,7 +61,8 @@
config :pleroma, :rich_media,
enabled: false,
ignore_hosts: [],
ignore_tld: ["local", "localdomain", "lan"]
ignore_tld: ["local", "localdomain", "lan"],
max_body: 2_000_000
config :pleroma, :instance,
multi_factor_authentication: [

View File

@ -59,7 +59,7 @@ defp check_content_length(headers) do
defp http_options() do
[
pool: :media,
max_body: Config.get([:rich_media, :max_body], 2_000_000)
max_body: Config.get([:rich_media, :max_body], 5_000_000)
]
end
end