I want to host a python application on Gunicorn server in two different ports. One at HTTP port (8000) and another at HTTPS port(8001). How can we achieve this in Gunicorn?
For http and https, I believe I need to pass two separate gunicorn_config.py files, one which has server certificates and another without any certificate (http).
Is it possible to do so? Or do I have to run two different instance of gunicorn server separatly?
I am using this to run the server:
gunicorn --config gunicorn_config.py application.main:app