I am running the python program with "app.run" specifying hostname and port. It is running on Http by default but I want to run on Https.
How can i do it?
I am running the python program with "app.run" specifying hostname and port. It is running on Http by default but I want to run on Https.
How can i do it?
I would rather suggest you setting up an Nginx proxy to do the SSL dirty work. It is well tested and routine.
Since Python can utilize only one cpu logical core in one process - no matter how many threads or coroutines in it, it is a bad idea for it to do the SSL cipher job. Suppose you rent a dual-core server, setting up an Nginx to decipher https to http back to your python http server will keep the server more healthy.