forked from AkkomaGang/akkoma
Merge branch 'develop' into 'develop'
Fix failure to serve media from custom upload path See merge request pleroma/pleroma!95
This commit is contained in:
commit
45627dde17
2 changed files with 2 additions and 2 deletions
|
@ -58,7 +58,7 @@ def store(%{"img" => "data:image/" <> image_data}) do
|
|||
}
|
||||
end
|
||||
|
||||
defp upload_path do
|
||||
def upload_path do
|
||||
settings = Application.get_env(:pleroma, Pleroma.Upload)
|
||||
Keyword.fetch!(settings, :uploads)
|
||||
end
|
||||
|
|
|
@ -11,7 +11,7 @@ defmodule Pleroma.Web.Endpoint do
|
|||
#
|
||||
# You should set gzip to true if you are running phoenix.digest
|
||||
# when deploying your static files in production.
|
||||
plug(Plug.Static, at: "/media", from: "uploads", gzip: false)
|
||||
plug(Plug.Static, at: "/media", from: Pleroma.Upload.upload_path(), gzip: false)
|
||||
|
||||
plug(
|
||||
Plug.Static,
|
||||
|
|
Loading…
Reference in a new issue