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

Update config to include Flask-Limiter settings

sh4nks 9 лет назад
Родитель
Сommit
3b15ac7cf8
1 измененных файлов с 13 добавлено и 0 удалено
  1. 13 0
      flaskbb/configs/production.py.example

+ 13 - 0
flaskbb/configs/production.py.example

@@ -86,6 +86,19 @@ class ProductionConfig(DefaultConfig):
     REDIS_URL = "redis://:password@localhost:6379"
     REDIS_URL = "redis://:password@localhost:6379"
     REDIS_DATABASE = 0
     REDIS_DATABASE = 0
 
 
+    # Flask-Limiter
+    # A full list with configuration values is available here:
+    # http://flask-limiter.readthedocs.io/en/stable/#configuration
+
+    # You can choose from:
+    #   memory:// (default)
+    #   redis://host:port
+    #   memcached://host:port
+    # Using the redis storage requires the installation of the redis package,
+    # which will be installed if you enable REDIS_ENABLE while memcached
+    # relies on the pymemcache package.
+    #RATELIMIT_STORAGE_URL = "redis://localhost:6379"
+
     # URL Prefixes. Only change it when you know what you are doing.
     # URL Prefixes. Only change it when you know what you are doing.
     FORUM_URL_PREFIX = ""
     FORUM_URL_PREFIX = ""
     USER_URL_PREFIX = "/user"
     USER_URL_PREFIX = "/user"