Просмотр исходного кода

Add note for disabling rate limiter in configs

sh4nks 8 лет назад
Родитель
Сommit
fa1345b5e1
2 измененных файлов с 6 добавлено и 2 удалено
  1. 3 1
      flaskbb/configs/default.py
  2. 3 1
      flaskbb/configs/production.py.example

+ 3 - 1
flaskbb/configs/default.py

@@ -117,7 +117,9 @@ class DefaultConfig(object):
     # -------------------------------
     # A full list with configuration values is available at the flask-limiter
     # docs, but you actually just need those settings below.
-    RATELIMIT_ENABLED = True
+    # You can disabled the Rate Limiter here as well - it will overwrite
+    # the setting from the admin panel!
+    # RATELIMIT_ENABLED = True
     # You can choose from:
     #   memory:// (default)
     #   redis://host:port

+ 3 - 1
flaskbb/configs/production.py.example

@@ -105,7 +105,9 @@ class ProductionConfig(DefaultConfig):
     # -------------------------------
     # A full list with configuration values is available at the flask-limiter
     # docs, but you actually just need those settings below.
-    RATELIMIT_ENABLED = True
+    # You can disabled the Rate Limiter here as well - it will overwrite
+    # the setting from the admin panel!
+    # RATELIMIT_ENABLED = True
     # You can choose from:
     #   memory:// (default)
     #   redis://host:port