This website works better with JavaScript.
Home
Explore
lain.church
Help
Register
Sign In
squeegily
/
pleroma
Watch
1
Star
0
Fork
0
Code
Issues
0
Pull Requests
0
Releases
42
Wiki
Activity
Browse Source
config: make the upload limit configurable
tags/v0.9.9
William Pitcock
6 years ago
parent
5fa8237bc1
commit
4bf86d4cf5
2 changed files
with
3 additions
and
1 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+1
-0
config/config.exs
+2
-1
lib/pleroma/web/endpoint.ex
+ 1
- 0
config/config.exs
View File
@@ -49,6 +49,7 @@ config :pleroma, :instance,
name: "Pleroma",
email: "example@example.com",
limit: 5000,
upload_limit: 16_000_000,
registrations_open: true,
federating: true
+ 2
- 1
lib/pleroma/web/endpoint.ex
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)
Write
Preview
Loading…
Cancel
Save