I would like to run Libretranslate on a given subpath, e.g., https://example.com/translate. I’ve managed to serve some contents of Libretranslate using WSGI and Gunicorn with the following syntax:
SCRIPT_NAME=/translate ./venv/bin/gunicorn --bind 0.0.0.0:5000 --log-level 'DEBUG' 'wsgi:app'
However, the Swagger URL, for example, is not set and the hyperlink shows https://example.com/docs.
What else should I need to add that does not involve manually rewriting routes in code?