flight_review icon indicating copy to clipboard operation
flight_review copied to clipboard

using nginx as proxy server

Open lijieamd opened this issue 5 years ago • 2 comments

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";
                }
        }

lijieamd avatar Jan 27 '20 12:01 lijieamd

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

bkueng avatar Jan 28 '20 07:01 bkueng

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

lijieamd avatar Jan 30 '20 03:01 lijieamd