I am currently moving Pyramid WSGI based application from the Waitress web server to Gunicorn web server due to multiprocess pooling support.
Currently, the application is being served with Waitress as:
from waitress import serve
serve(app,
host='127.0.0.1',
trusted_proxy="127.0.0.1",
threads=32,
port=port,
trusted_proxy_headers="forwarded",
url_scheme=scheme, # HTTPS
url_prefix='/api')
Now, I would like to serve the same application with Gunicorn. I managed to find all matching options on Gunicorn, but not url_prefix. What is Gunicorn equivalent for setting the application URL prefix (I think this is sometimes also called application root)?