mirror of
https://framagit.org/framasoft/mobilizon.git
synced 2024-12-24 00:43:02 +00:00
15 lines
343 B
Elixir
15 lines
343 B
Elixir
|
defmodule Mobilizon.Web.PlugConfigs do
|
||
|
@moduledoc """
|
||
|
Runtime configuration for plugs
|
||
|
"""
|
||
|
|
||
|
def parsers do
|
||
|
upload_limit =
|
||
|
Keyword.get(Application.get_env(:mobilizon, :instance, []), :upload_limit, 10_485_760)
|
||
|
|
||
|
[
|
||
|
parsers: [:urlencoded, {:multipart, length: upload_limit}, :json, Absinthe.Plug.Parser]
|
||
|
]
|
||
|
end
|
||
|
end
|