HTTPS and gunicorn
I'm working on a Python ssl client/server apps on Flask. I've tested them by starting gunicorn as follows:
gunicorn --bind :8080 --keyfile server.key --certfile server.crt --ca-certs app:app
And I'm able to receive data no problem. Now I want to add a supervisord script file to auto reload gunicorn if it crashes etc..
command=/home/user/FirstApp/venv/bin/gunicorn --workers=3 --keyfile certs/server.key --certfile certs/server.crt wsgi:app
Then reload/run supervisor and it shows that is running but when I try to connect just like I did before adding the supervisor I get a connection refuse error:
curl --insecure https://serverip:8080/test
curl: (7) Failed to connect to serverip port 8080: Connection refused
I don't understand why this is happening. It works perfectly fine when I'm not running the supervisord script? ….