debug for media proxy

This commit is contained in:
Alex S 2019-08-16 09:51:10 +03:00
parent d052dca152
commit 7354d8958b

View File

@ -13,6 +13,9 @@ defmodule Pleroma.Web.MediaProxy.MediaProxyController do
with config <- Pleroma.Config.get([:media_proxy], []),
true <- Keyword.get(config, :enabled, false),
{:ok, url} <- MediaProxy.decode_url(sig64, url64),
IO.inspect(sig64),
IO.inspect(url64),
IO.inspect(url),
:ok <- filename_matches(params, conn.request_path, url) do
ReverseProxy.call(conn, url, Keyword.get(config, :proxy_opts, @default_proxy_opts))
else