master
Aevann1 2021-09-20 16:29:46 +02:00
parent 70114181aa
commit 381c57a79e
1 changed files with 2 additions and 1 deletions

View File

@ -59,12 +59,13 @@ app.config["RATELIMIT_DEFAULTS_DEDUCT_WHEN"]=lambda:True
app.config["RATELIMIT_DEFAULTS_EXEMPT_WHEN"]=lambda:False app.config["RATELIMIT_DEFAULTS_EXEMPT_WHEN"]=lambda:False
app.config["RATELIMIT_HEADERS_ENABLED"]=True app.config["RATELIMIT_HEADERS_ENABLED"]=True
app.config["CACHE_TYPE"] = "filesystem" app.config["CACHE_TYPE"] = "filesystem"
app.config["CACHE_DIR"] = "cache"
app.config["RATELIMIT_STORAGE_URL"] = "redis://127.0.0.1" app.config["RATELIMIT_STORAGE_URL"] = "redis://127.0.0.1"
r=redis.Redis(host="127.0.0.1", decode_responses=True, ssl_cert_reqs=None) r=redis.Redis(host="127.0.0.1", decode_responses=True, ssl_cert_reqs=None)
Markdown(app)
cache = Cache(app) cache = Cache(app)
Markdown(app)
Compress(app) Compress(app)
limiter = Limiter( limiter = Limiter(