mirror of
https://github.com/LibreTranslate/LibreTranslate.git
synced 2025-05-14 22:13:02 +00:00
Add --hourly-req-limit
This commit is contained in:
parent
95c4cf6466
commit
4903ab757c
3 changed files with 22 additions and 4 deletions
|
@ -35,6 +35,13 @@ def get_args():
|
|||
metavar="<Storage URI>",
|
||||
help="Storage URI to use for request limit data storage. See https://flask-limiter.readthedocs.io/en/stable/configuration.html. (%(default)s)",
|
||||
)
|
||||
parser.add_argument(
|
||||
"--hourly-req-limit",
|
||||
default=DEFARGS['HOURLY_REQ_LIMIT'],
|
||||
type=int,
|
||||
metavar="<number>",
|
||||
help="Set the default maximum number of requests per hour per client, in addition to req-limit. (%(default)s)",
|
||||
)
|
||||
parser.add_argument(
|
||||
"--daily-req-limit",
|
||||
default=DEFARGS['DAILY_REQ_LIMIT'],
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue