Pleroma Backend cannot read the X-Forwarded-For header, so rate limiters can't work.
Environment
- Installation type (OTP or From Source): From Source
- Pleroma version (could be found in the "Version" tab of settings in Pleroma-FE): 2.0.50-2395-g0149dd01-develop
- Elixir version (
elixir -v
for from source installations, N/A for OTP): the one downloaded with provided dockerfile. - Operating system: Linux (using the prodiver dockerfile)
- PostgreSQL version (
psql -V
): 12
Bug description
Rate limiters aren't working, complaining the X-Forwarded-For is not there. I sniffed the traffic with tcpdump, and I can see the reverse proxy (caddy) is always putting the header. See attached images.
despite of this, rate limiters aren't working, and the logs are like:
So the header is there, but pleroma thinks is not.