Api key not working

Starting with /usr/bin/python3.8 /home/libretranslate/.local/bin/libretranslate --host 0.0.0.0 --port 5000 --disable-files-translation --disable-web-ui --api-keys --api-keys-db-path /home/libretranslate/db/api_keys.db , but the api still works with an empty “” api_key field in the request. I inserted a key string into the db with a request limit as well.

Right; you need to pass --req-limit 0 so that only API key holders can make requests.

Probably a good idea to add that to the documentation, cause that bit of information is missing

Indeed, help us improve it by opening a pull request? :pray:

Not great with markdown, but I shall give it a shot.

2 Likes