skuzzle / cmp

Create and share public counters
https://countmy.pizza
MIT License
6 stars 1 forks source link

RateLimiter IP detection doesn't work #54

Closed skuzzle closed 4 years ago

skuzzle commented 4 years ago

Someone's not setting the X-Forwarded-For header correctly

skuzzle commented 4 years ago

Solved by fixing deployment config according to: https://dockerswarm.rocks/traefik/#getting-the-client-ip

So, the Docker Compose lines:

ports:
- 80:80
- 443:443

need to be:

ports:
- target: 80
published: 80
mode: host
- target: 443
published: 443
mode: host