Synced
This commit is contained in:
parent
8289ebf4ca
commit
0cbbdb7716
4 changed files with 6 additions and 2 deletions
|
|
@ -23,6 +23,8 @@ services:
|
||||||
- driver: nvidia
|
- driver: nvidia
|
||||||
count: 1
|
count: 1
|
||||||
capabilities: [gpu]
|
capabilities: [gpu]
|
||||||
|
## Uncomment this for logging in docker compose logs
|
||||||
|
# tty: true
|
||||||
# './venv/bin/python is not implemented in the cuda docker yet
|
# './venv/bin/python is not implemented in the cuda docker yet
|
||||||
# healthcheck:
|
# healthcheck:
|
||||||
# test: ['CMD-SHELL', './venv/bin/python scripts/healthcheck.py']
|
# test: ['CMD-SHELL', './venv/bin/python scripts/healthcheck.py']
|
||||||
|
|
|
||||||
|
|
@ -11,6 +11,8 @@ services:
|
||||||
timeout: 4s
|
timeout: 4s
|
||||||
retries: 4
|
retries: 4
|
||||||
start_period: 5s
|
start_period: 5s
|
||||||
|
## Uncomment this for logging in docker compose logs
|
||||||
|
# tty: true
|
||||||
## Uncomment above command and define your args if necessary
|
## Uncomment above command and define your args if necessary
|
||||||
# command: --ssl --ga-id MY-GA-ID --req-limit 100 --char-limit 500
|
# command: --ssl --ga-id MY-GA-ID --req-limit 100 --char-limit 500
|
||||||
## Uncomment this section and the libretranslate_api_keys volume if you want to backup your API keys
|
## Uncomment this section and the libretranslate_api_keys volume if you want to backup your API keys
|
||||||
|
|
|
||||||
|
|
@ -34,7 +34,7 @@ def manage():
|
||||||
)
|
)
|
||||||
|
|
||||||
keys_remove_parser = keys_subparser.add_parser(
|
keys_remove_parser = keys_subparser.add_parser(
|
||||||
"remove", help="Remove API keys to database"
|
"remove", help="Remove API keys from database"
|
||||||
)
|
)
|
||||||
keys_remove_parser.add_argument("key", type=str, help="API Key")
|
keys_remove_parser.add_argument("key", type=str, help="API Key")
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -72,7 +72,7 @@
|
||||||
{% if get_api_key_link %}
|
{% if get_api_key_link %}
|
||||||
<li><a href="{{ get_api_key_link }}">{{ _h("Get API Key") }}</a></li>
|
<li><a href="{{ get_api_key_link }}">{{ _h("Get API Key") }}</a></li>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
<li><a href="https://github.com/LibreTranslate/LibreTranslate" rel="noopener noreferrer">{{ _h("GitHub") }}</a></li>
|
<li><a href="https://github.com/LibreTranslate/LibreTranslate" target="_blank" rel="noopener noreferrer">{{ _h("GitHub") }}</a></li>
|
||||||
{% if api_keys %}
|
{% if api_keys %}
|
||||||
<li><a class="noline" href="javascript:setApiKey()" title="{{ _h('Set API Key') }}" aria-label="{{ _h('Set API Key') }}"><i class="material-icons">vpn_key</i></a></li>
|
<li><a class="noline" href="javascript:setApiKey()" title="{{ _h('Set API Key') }}" aria-label="{{ _h('Set API Key') }}"><i class="material-icons">vpn_key</i></a></li>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue