Under attack mode

This commit is contained in:
Piero Toffanin 2025-04-18 14:41:12 -04:00
parent e4eb96482f
commit bdb9b6a224
5 changed files with 36 additions and 11 deletions

View file

@ -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,