mirror of
https://github.com/LibreTranslate/LibreTranslate.git
synced 2025-06-08 07:37:47 +00:00
Under attack mode
This commit is contained in:
parent
e4eb96482f
commit
bdb9b6a224
5 changed files with 36 additions and 11 deletions
|
@ -153,6 +153,12 @@ def get_args():
|
|||
action="store_true",
|
||||
help="Require use of an API key for programmatic access to the API, unless the client also matches a fingerprint",
|
||||
)
|
||||
parser.add_argument(
|
||||
"--under-attack",
|
||||
default=DEFARGS['UNDER_ATTACK'],
|
||||
action="store_true",
|
||||
help="Enable under attack mode. When enabled, requests must be made with an API key",
|
||||
)
|
||||
parser.add_argument(
|
||||
"--shared-storage",
|
||||
type=str,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue