mirror of
https://github.com/LibreTranslate/LibreTranslate.git
synced 2025-06-20 08:01:00 +00:00
Programmatic api keys access
This commit is contained in:
parent
29c1f2cd2e
commit
24c77ede19
3 changed files with 31 additions and 4 deletions
|
@ -32,6 +32,8 @@ def main():
|
|||
help='Set frontend translation timeout (%(default)s)')
|
||||
parser.add_argument('--api-keys', default=False, action="store_true",
|
||||
help="Enable API keys database for per-user rate limits lookup")
|
||||
parser.add_argument('--require-api-key-origin', type=str, default="",
|
||||
help="Require use of an API key for programmatic access to the API, unless the request origin matches this domain")
|
||||
parser.add_argument('--load-only', type=operator.methodcaller('split', ','),
|
||||
metavar='<comma-separated language codes>',
|
||||
help='Set available languages (ar,de,en,es,fr,ga,hi,it,ja,ko,pt,ru,zh)')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue