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

NO-ISSUE: Fix JBPM DevUI Quarkus HTTP Host and Port #2552

Merged
merged 4 commits into from
Sep 3, 2024

Conversation

thiagoelg
Copy link
Member

@thiagoelg thiagoelg commented Sep 2, 2024

  • Use 0.0.0.0 instead of localhost for Quarkus Apps to support running dev mode on containers;
  • Set default values for quarkus.http.host and quarkus.http.port.

@@ -9,11 +9,11 @@ quarkus.kogito.data-index.graphql.ui.always-include=true
quarkus.http.test-port=0

# Kogito-service
kogito.service.url=http://localhost:8080
kogito.service.url=http://0.0.0.0:8080
Copy link
Contributor

@fantonangeli fantonangeli Sep 3, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@thiagoelg @pefernan Should I apply this change to:
examples/sonataflow-greeting-quarkus-example/src/main/resources/application.properties
in this PR: #2511 ?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe... we switched from localhost because localhost could have different meanings in different contexts (in a container, for example).

And our solution to run quarkus apps in dev mode on OpenShift was to replace quarkus.http.host:quarkus.http.port with window.location.origin basically.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thank you @thiagoelg

@tiagobento tiagobento merged commit 137d1eb into apache:main Sep 3, 2024
14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants