We made a new section on our website regarding plot data and display and we decided to go with bokeh. The architecture we choose is the flask embed option and the good news is the app works perfectly when running on our computers. Once we moved to AWS the apps refuses to work the error we get is
We suspect that the error happens because of nginx, AWS or letsEncrypt certificate however we made the correct changes however we are still not able to open the connection our flask code
Our nginx configuration
Finally our AWS security group inbound traffic is as follow
as you can see we open the custom TCP rule for port 5006 and also we opened port 8000 any help is appreciated