config: make the upload limit configurable

This commit is contained in:
William Pitcock 2018-03-31 23:43:03 +00:00
commit 4bf86d4cf5
2 changed files with 3 additions and 1 deletions

View file

@ -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)