josiah-wolf-oberholtzer / discograph

Social Graphing for the Discogs Database
MIT License
74 stars 11 forks source link

Make Apache forward original IP, for rate limiting. #52

Closed josiah-wolf-oberholtzer closed 9 years ago

josiah-wolf-oberholtzer commented 9 years ago

Currently, every Flask requests reports the remote address as 127.0.0.1. This makes rate limiting by IP impossible.

Remote IP may be available via the X-Forwarded-For header.

See: http://serverfault.com/questions/130925/passing-ip-address-with-mod-proxy

josiah-wolf-oberholtzer commented 9 years ago

Done.