From 41961115297e0ddcb74f4f9ed3c1cf56b6f929c6 Mon Sep 17 00:00:00 2001 From: Joachim Lusiardi Date: Mon, 31 May 2021 21:23:12 +0200 Subject: [PATCH] adapt general request limits --- app/__init__.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/__init__.py b/app/__init__.py index bb238a8..ca9660d 100644 --- a/app/__init__.py +++ b/app/__init__.py @@ -15,10 +15,11 @@ from .forms import * app = Flask(__name__) app.config.from_object(config[os.getenv('FLASK_CONFIG') or 'default']) +# applies to all routes, so choose limits wisely! limiter = Limiter( app, key_func=get_remote_address, - default_limits=["200 per day", "50 per hour"] +# default_limits=["500 per second"] )