Merge branch 'media-proxy' into 'develop'
Media proxy See merge request pleroma/pleroma!34
This commit is contained in:
commit
35ac549a99
10 changed files with 152 additions and 10 deletions
|
|
@ -238,6 +238,14 @@ defmodule Pleroma.Web.Router do
|
|||
delete "/auth/sign_out", MastodonAPIController, :logout
|
||||
end
|
||||
|
||||
pipeline :remote_media do
|
||||
plug :accepts, ["html"]
|
||||
end
|
||||
scope "/proxy/", Pleroma.Web.MediaProxy do
|
||||
pipe_through :remote_media
|
||||
get "/:sig/:url", MediaProxyController, :remote
|
||||
end
|
||||
|
||||
scope "/", Fallback do
|
||||
get "/*path", RedirectController, :redirector
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue