flight_review
flight_review copied to clipboard
using nginx as proxy server
I already have a web on my server, so i use nginx to proxy http request for flight_review. everything seems fine but stuck at "Loading Plots..." after ulg file uploaded. i also tried using flight_review server alone, it works fine. i don't know much about computer network, hope someone can help.
here is my nginx config and flight_review config:
flight_review startup:
./serve.py --address=127.0.0.1 --port=5006 --allow-websocket-origin=*
nginx config:
upstream px4_flight_review {
server 127.0.0.1:5006;
}
server {
listen 80;
server_name px4.mysite.com;
location / {
proxy_pass http://px4_flight_review;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
}
}
You need to make sure the websockets get through. You can try this:
./serve.py --address=127.0.0.1 --port=5006 --allow-websocket-origin='*' --use-xheaders
thanks for your reply, but use --use-xheaders
option not work
i believe the problem is bokeh websockets does not proxy right, i'll try some nginx config in Bokeh user guide