Thanks Brian. I am going to try this out and report back. Btw i notice two different nginx conf any reason why?
Also I run Nginx anf Boken in same server.
···
On Oct 3, 2017 9:13 PM, “Bryan Van de ven” bryan@bokeh.org wrote:
Hi,
So there are things about your Nginx config I simply don’t know enough about to really adapt. So I went back to the guidance in the users docs, and found a configuration that is working. I hope that it will prove useful enough as a comparison to get you going and adapt to your setup. For reference, I used Nginx 1.13.5 on Win 10 with Bokeh 0.12.9.
After the two steps below, I navigated to http://192.168.155.129/bokehwhatif in a browser outside the VM and could see and interact with the app as expected.
Start bokeh server with this command:
bokeh serve bokehwhatif.py --allow-websocket-origin 192.168.155.129 --port 5100Start Nginx wit this config:
#user nobody;
worker_processes 4;
events {
worker_connections 1024;}
http {
sendfile on;
tcp_nopush on;
tcp_nodelay on;
keepalive_timeout 65;
types_hash_max_size 2048;
default_type application/octet-stream;
gzip on;
gzip_min_length 1100;
gzip_buffers 4 32k;
open_file_cache max=10000 inactive=10m;
open_file_cache_valid 2m;
open_file_cache_min_uses 1;
open_file_cache_errors on;
ignore_invalid_headers on;
client_max_body_size 8m;
client_header_timeout 3m;
client_body_timeout 3m;
send_timeout 3m;
connection_pool_size 256;
client_header_buffer_size 4k;
large_client_header_buffers 4 32k;
request_pool_size 4k;
output_buffers 4 32k;
postpone_output 1460;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_http_version 1.1;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}
}
}
–
You received this message because you are subscribed to the Google Groups “Bokeh Discussion - Public” group.
To unsubscribe from this group and stop receiving emails from it, send an email to bokeh+unsubscribe@continuum.io.
To post to this group, send email to bokeh@continuum.io.
For more options, visit https://groups.google.com/a/continuum.io/d/optout.
#include C:/Users/smaurice/AppData/Local/Programs/Python/Python35/Lib/site-packages/bokeh/server/static/;
gzip_types text/plain application/x-javascript text/xml text/css application/json;
server {listen 192.168.155.129; server_name _; access_log C:/Users/builder/nginxlog/access.log; error_log C:/Users/builder/nginxlog/error.log debug; location / { proxy_pass [http://127.0.0.1:5100](http://127.0.0.1:5100);proxy_set_header Host $host:$server_port;
proxy_buffering off;To view this discussion on the web visit https://groups.google.com/a/continuum.io/d/msgid/bokeh/8C5088D8-B484-43D2-A70E-B4405C14CB25%40anaconda.com.

