-
-
Notifications
You must be signed in to change notification settings - Fork 127
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add support for x-forwarded-for header #428
Comments
This is documented here |
The method provided in the docs works with werkzeug, which is not recommended for production use. For example, I am using Apache + gunicorn and that configuration does not work for me |
The example I shared adds a middleware from |
@davidecoccia I'm going to close this for now - the inclusion of a default |
The rate-limiting feature is not working when the flask app runs behind a reverse proxy.
In my configuration i have an apache reverse proxy in front of my flask app running gunicorn. get_remote_address() in https://github.com/alisaifee/flask-limiter/blob/master/flask_limiter/util.py only considers the caller address, which in my case is always the proxy one
Expected Behaviour
update the method or add a new one to consider the proxied IP. This can be done using flask.headers, like so
The text was updated successfully, but these errors were encountered: