How to create API key?
-
wrote on Jan 19, 2023, 11:09 AM last edited by
OK, let's try this
I have installed LT. The web frontend works out of the box.
Now I'd like to create an API key in order to use LT on my Mastodon instance.It seems this is done through the command line interface with
ltmanage keys add
However, ltmanage is nowhere to be found.
Does anyone know how to complete this task? -
OK, let's try this
I have installed LT. The web frontend works out of the box.
Now I'd like to create an API key in order to use LT on my Mastodon instance.It seems this is done through the command line interface with
ltmanage keys add
However, ltmanage is nowhere to be found.
Does anyone know how to complete this task?wrote on Jan 19, 2023, 12:22 PM last edited by@nichu42 said in How to create API key?:
Now I'd like to create an API key in order to use LT on my Mastodon instance.
I came here to ask exactly this!
-
@jdaviescoates @nichu42 I had to remove proxy auth to make API keys work well. So, please reinstall the app.
After that, follow https://docs.cloudron.io/apps/libretranslate/#create-key
-
@jdaviescoates @nichu42 I had to remove proxy auth to make API keys work well. So, please reinstall the app.
After that, follow https://docs.cloudron.io/apps/libretranslate/#create-key
wrote on Jan 20, 2023, 10:45 AM last edited byThat worked well, thanks @girish!
The only issue I'm having that LT seems to be quite slow in sending a response (also checked with curl).
Mastodon returns a 503 Remote data could not be fetched on some toots. Others work. -
@jdaviescoates @nichu42 I had to remove proxy auth to make API keys work well. So, please reinstall the app.
After that, follow https://docs.cloudron.io/apps/libretranslate/#create-key
wrote on May 8, 2024, 8:43 AM last edited byHello @girish
When I run the command
su - cloudron -c 'ltmanage keys --api-keys-db-path /app/data/db/api_keys.db add 120'
in the web terminal of LibreTranslate I get the error-bash: line 1: ltmanage: command not found
. Same when doingsu - cloudron
alone first. Altmanage keys
alone encounters write permission errors. -
Ah thanks for the hint, the latest package uses virtual env now, so we had to update the docs to initialize the python venv with
source /app/code/.venv/bin/activate
.The docs are now fixed https://docs.cloudron.io/apps/libretranslate/
-
-
-