'Setting application URL prefix with Gunicorn

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)?



Solution 1:[1]

Run this command:

conda install matplotlib --force

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Sibtain Reza