Migrate Monitor (monitor.py)from using http.server
Bug Description
The Monitor code is using http.server which is not recommended for production environments since Python 3.6: https://docs.python.org/3.6/library/http.server.html.
Continuing to use http.server introduces vulnerabilities since the port it uses is exposed (per https://pecanproject.github.io/pecan-documentation/develop/pecan-docker.html#pecan-dc-monitor)
To Reproduce
Build a Monitor docker image, or use an existing image, and run it. This exposes port 9999 to the outside world and requests are handled by code that is not recommended to be used in a production environment.
Expected behavior
Production-ready code/libraries are used
Screenshots
N/A
Machine (please complete the following information):
N/A
Additional context
do you have any recommendations for libraries to use?
I use/have used Flask with Gunicorn, and others. There are many choices listed here (but not limited to these): https://docs.python-guide.org/scenarios/web/ and here: https://wiki.python.org/moin/WebFrameworks. Not being familiar with Monitor, I'm not sure what the best one(s) are.
This issue is stale because it has been open 365 days with no activity.