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

WebSocket did not Open: Dashboard failed to load. #57

Open
Tsangares opened this issue May 6, 2023 · 1 comment
Open

WebSocket did not Open: Dashboard failed to load. #57

Tsangares opened this issue May 6, 2023 · 1 comment

Comments

@Tsangares
Copy link
Contributor

I had this error when setting up hornet with a dashboard and a domain name with nginx and certbot:

WARN        Dashboard        upgrade websocket error: websocket: the client is not using the websocket protocol: 'websocket' token not found in 'Upgrade' header

Classic I have seen this one before. I went to line 71 of /etc/nginx/conf.d/hornet.conf for:

# hornet dashboard
location / {
    ...
}

Where I added the lines:

    proxy_set_header Connection "upgrade";	
    proxy_set_header Upgrade $http_upgrade;

And that fixed it.

The final section of that file looks like:

# hornet dashboard
location / {
    limit_req zone=hornet_dashboard burst=100;
    proxy_pass http://hornet_dashboard;
    proxy_set_header X-Forwarded-Host $host;
    proxy_set_header X-Forwarded-Server $host;
    proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
    proxy_http_version 1.1;
    proxy_pass_request_headers on;
    proxy_set_header Connection "keep-alive";
    proxy_set_header Connection "upgrade";	
    proxy_set_header Upgrade $http_upgrade;
    proxy_store off;
}

I will try to make a PR if I can find it in your ansible.

@Tsangares
Copy link
Contributor Author

PR opened #58

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

1 participant