opened 02:28PM - 11 Apr 23 UTC
I'd like to use params for libretranslate, but I do not know where to add them. … If I add them to the end of this line like that, it fails to start:
`ExecStart=/home/libretranslate/LibreTranslate/env/bin/gunicorn --workers 3 --bind unix:libretranslate.sock -m 007 wsgi:app --api-keys`
I also tried (and failed) with that:
`ExecStart=/home/libretranslate/LibreTranslate/env/bin/gunicorn --workers 3 --bind unix:libretranslate.sock -m 007 wsgi:app --env LT_API_KEYS`
This seems to be failing with multiple params:
ExecStart=/home/libretranslate/LibreTranslate/env/bin/gunicorn --workers 3 --bind unix:libretranslate.sock -m 007 'wsgi:app(api_keys=True, require-api-key-origin=True, req-limit="0", get-api-key-link=True)'
Maybe the issue is some interaction with Systemd?
Based on the command reported above, it could be just the name of the parameters. (Use underscores, not dashes, e.g. require_api_key_origin
instead of require-api-key-origin
).
1 Like