mirror of
https://github.com/LibreTranslate/LibreTranslate.git
synced 2025-05-14 22:13:02 +00:00
Shared storage implementation
This commit is contained in:
parent
b59b82cfb0
commit
e00f3af7db
5 changed files with 49 additions and 40 deletions
|
@ -126,6 +126,13 @@ def get_args():
|
|||
action="store_true",
|
||||
help="Require use of an API key for programmatic access to the API, unless the client also sends a secret match",
|
||||
)
|
||||
parser.add_argument(
|
||||
"--shared-storage",
|
||||
type=str,
|
||||
default=DEFARGS['SHARED_STORAGE'],
|
||||
metavar="<Storage URI>",
|
||||
help="Shared storage URI to use for multi-process data sharing (e.g. via gunicorn)",
|
||||
)
|
||||
parser.add_argument(
|
||||
"--load-only",
|
||||
type=operator.methodcaller("split", ","),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue