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

Web frontend can't connect to websocket, with terraform deployment #851

Closed
jeanparpaillon opened this issue Aug 10, 2022 · 3 comments
Closed

Comments

@jeanparpaillon
Copy link

Describe the bug

When deploying our own instance of NervesHub, following instructions from https://docs.nerves-hub.org/nerves-hub/custom-deployment/requirements , the frontend won't connect to nerves_hub_ww websocket, because of wrong origin.

I think the issue could be solved by allowing a custom NervesHubWWW.Endpoint, check_origin option, though env var.

If you think this is the right way to proceed, I can provide PR.

@tonnenpinguin
Copy link
Contributor

Hey!
We are running a setup based on the terraform deployment as well without any issues. Are you sure you set the correct domain in the terraform.tfvars file? I don't think you should require a custom check_origin option for same host access

@jeanparpaillon
Copy link
Author

Thank you for your feedback. Sorry, the error came from a small modification on domain name. My bad.

@tonnenpinguin
Copy link
Contributor

tonnenpinguin commented Aug 10, 2022

Glad you found your issue :)

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