aboutsummaryrefslogtreecommitdiff
path: root/lib/pleroma/web/endpoint.ex
diff options
context:
space:
mode:
authorminibikini <egor@kislitsyn.com>2019-09-27 21:59:23 +0000
committerHaelwenn <contact+git.pleroma.social@hacktivis.me>2019-09-27 21:59:23 +0000
commitf9380289eb251c818e87e8f0ad0a41fc8bdd90aa (patch)
tree5bb67874c8b34ad13f25055938826475f38e2301 /lib/pleroma/web/endpoint.ex
parent92d08d4113c4de09cd8d736ed1a0349745866eef (diff)
downloadpleroma-f9380289eb251c818e87e8f0ad0a41fc8bdd90aa.tar.gz
Add `remote_ip` plug
Diffstat (limited to 'lib/pleroma/web/endpoint.ex')
-rw-r--r--lib/pleroma/web/endpoint.ex5
1 files changed, 1 insertions, 4 deletions
diff --git a/lib/pleroma/web/endpoint.ex b/lib/pleroma/web/endpoint.ex
index eb805e853..2212e93f4 100644
--- a/lib/pleroma/web/endpoint.ex
+++ b/lib/pleroma/web/endpoint.ex
@@ -97,10 +97,7 @@ defmodule Pleroma.Web.Endpoint do
extra: extra
)
- # Note: the plug and its configuration is compile-time this can't be upstreamed yet
- if proxies = Pleroma.Config.get([__MODULE__, :reverse_proxies]) do
- plug(RemoteIp, proxies: proxies)
- end
+ plug(Pleroma.Plugs.RemoteIp)
defmodule Instrumenter do
use Prometheus.PhoenixInstrumenter