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

improve routing of webui requests #4645

Merged
merged 4 commits into from
Oct 24, 2024

Conversation

wdbaruni
Copy link
Member

@wdbaruni wdbaruni commented Oct 22, 2024

Have the webui server act as a reverse proxy and route requests to the orchestrator instead of the frontend directly calling the orchestrator. This will simplify webui setup instead of having to define the WebUI.Backend to the orchestrator's public ip with bacalhau serve

The configuration WebUI.Backend is still available and make accepting endpoints more graceful

Testing done:

Mostly manual testing, but verified the following:

  1. Routing of basic http requests
  2. Routing of websockets, such as log stream
  3. Disconnecting and reconnecting the backend
  4. Setting WebUI.Backend to the demo network. Doesn't make sense today, but in case in the future we want to spin up the WebUI server in a separate process from the orchestrator

Copy link

linear bot commented Oct 22, 2024

@wdbaruni wdbaruni self-assigned this Oct 24, 2024
@wdbaruni wdbaruni merged commit e4623b9 into main Oct 24, 2024
7 checks passed
@wdbaruni wdbaruni deleted the eng-280-improved-routing-of-webui-requests branch October 24, 2024 12:06
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

Successfully merging this pull request may close these issues.

1 participant