mirror of
https://akkoma.dev/AkkomaGang/akkoma.git
synced 2024-11-17 18:49:15 +00:00
config: make the upload limit configurable
This commit is contained in:
parent
5fa8237bc1
commit
4bf86d4cf5
|
@ -49,6 +49,7 @@
|
|||
name: "Pleroma",
|
||||
email: "example@example.com",
|
||||
limit: 5000,
|
||||
upload_limit: 16_000_000,
|
||||
registrations_open: true,
|
||||
federating: true
|
||||
|
||||
|
|
|
@ -34,7 +34,8 @@ defmodule Pleroma.Web.Endpoint do
|
|||
Plug.Parsers,
|
||||
parsers: [:urlencoded, :multipart, :json],
|
||||
pass: ["*/*"],
|
||||
json_decoder: Jason
|
||||
json_decoder: Jason,
|
||||
length: Application.get_env(:pleroma, :instance) |> Keyword.get(:upload_limit)
|
||||
)
|
||||
|
||||
plug(Plug.MethodOverride)
|
||||
|
|
Loading…
Reference in a new issue