Is WSGI currently supported?

I’m trying to run LibreTranslate with a Nginx proxy using WSGI, is this currently supported?

Edit: currently not, I’m actually looking into this.

Ok, with the latest main branch you can now do (from the LibreTranslate root directory):

pip install gunicorn
gunicorn --bind 0.0.0.0:5000 'wsgi:app'

You can also pass application arguments directly to Gunicorn via:

gunicorn --bind 0.0.0.0:5000 'wsgi:app(api_keys=True)'
1 Like