0

I want to create a Flask app with embedded bokeh server document deployed on a web server. Current bokeh documentation demonstrates how to do this by running Flask on Port 8080 and the bokeh server on Port 5006.

In order to deploy on a very locked-down web server, I want Flask and the bokeh server to share a port, i.e. both use Port 8080. Is that possible and if so what is required...

Russell Burdt
  • 2,391
  • 2
  • 19
  • 30
  • 1
    [You can't share TCP ports (which are used for web)](https://stackoverflow.com/questions/1694144/can-two-applications-listen-to-the-same-port). Widespread solution is to bind apache/nginx to 8080 and reverse-proxy with it to your apps. – Fine May 04 '18 at 15:27
  • The nginx configuration block [referenced in the documentation](http://bokeh.pydata.org/en/latest/docs/user_guide/server.html#nginx) for this purpose has worked for my application of embedding a bokeh app in Flask. – Russell Burdt Aug 30 '18 at 20:26

0 Answers0