projects
/
akkoma
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Make activity announceable by its author.
[akkoma]
/
lib
/
pleroma
/
web
/
endpoint.ex
diff --git
a/lib/pleroma/web/endpoint.ex
b/lib/pleroma/web/endpoint.ex
index c123530dcf961c10a2dfd5179404c3a43c53613f..2212e93f417ed4ee329ab6e0928c346be18ed373 100644
(file)
--- a/
lib/pleroma/web/endpoint.ex
+++ b/
lib/pleroma/web/endpoint.ex
@@
-57,7
+57,7
@@
defmodule Pleroma.Web.Endpoint do
plug(Phoenix.CodeReloader)
end
plug(Phoenix.CodeReloader)
end
- plug(TrailingFormatPlug)
+ plug(
Pleroma.Plugs.
TrailingFormatPlug)
plug(Plug.RequestId)
plug(Plug.Logger)
plug(Plug.RequestId)
plug(Plug.Logger)
@@
-97,10
+97,7
@@
defmodule Pleroma.Web.Endpoint do
extra: extra
)
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
defmodule Instrumenter do
use Prometheus.PhoenixInstrumenter