Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

using nginx as proxy server #183

Open
lijieamd opened this issue Jan 27, 2020 · 2 comments
Open

using nginx as proxy server #183

lijieamd opened this issue Jan 27, 2020 · 2 comments

Comments

@lijieamd
Copy link

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";
                }
        }
@bkueng
Copy link
Member

bkueng commented Jan 28, 2020

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

@lijieamd
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants