Skip to content

Commit

Permalink
increase rate limit to 3000/hour
Browse files Browse the repository at this point in the history
  • Loading branch information
wuttinanhi committed Nov 14, 2022
1 parent fec1ed8 commit 690f6a9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@

from flask import Flask, request
from flask.logging import create_logger
from flask_cors import CORS
from flask_limiter import Limiter
from flask_limiter.util import get_remote_address
from flask_socketio import SocketIO, emit
Expand All @@ -26,7 +27,6 @@
from settings.blueprint import blueprint as settings_blueprint
from settings.service import SettingService
from user.blueprint import blueprint as user_blueprint
from flask_cors import CORS

# load env
load_env()
Expand All @@ -48,7 +48,7 @@
limiter = Limiter(
app,
key_func=get_remote_address,
default_limits=["1000/hour"],
default_limits=["3000/hour"],
storage_uri="memory://",
)

Expand Down

0 comments on commit 690f6a9

Please sign in to comment.