mirror of
https://akkoma.dev/AkkomaGang/akkoma.git
synced 2024-12-24 18:15:19 +00:00
Fix failure to serve media from custom upload path
This commit is contained in:
parent
d70d1c427a
commit
033771d9f1
|
@ -58,7 +58,7 @@ defmodule Pleroma.Upload 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