Skip to content

Commit

Permalink
NO-ISSUE: Fix JBPM DevUI Quarkus HTTP Host and Port (#2552)
Browse files Browse the repository at this point in the history
  • Loading branch information
thiagoelg authored Sep 3, 2024
1 parent 7467950 commit 137d1eb
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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

#Job-service
kogito.jobs-service.url=http://localhost:8080
kogito.dataindex.http.url=http://localhost:8080
kogito.jobs-service.url=http://0.0.0.0:8080
kogito.dataindex.http.url=http://0.0.0.0:8080

# run create tables scripts
quarkus.flyway.migrate-at-start=true
Expand All @@ -26,8 +26,8 @@ kogito.persistence.type=jdbc
quarkus.datasource.db-kind=postgresql
%prod.quarkus.datasource.username=kogito-user
%prod.quarkus.datasource.password=kogito-pass
%prod.quarkus.datasource.jdbc.url=${QUARKUS_DATASOURCE_JDBC_URL:jdbc:postgresql://localhost:5432/kogito}
%prod.quarkus.datasource.reactive.url=${QUARKUS_DATASOURCE_REACTIVE_URL:postgresql://localhost:5432/kogito}
%prod.quarkus.datasource.jdbc.url=${QUARKUS_DATASOURCE_JDBC_URL:jdbc:postgresql://0.0.0.0:5432/kogito}
%prod.quarkus.datasource.reactive.url=${QUARKUS_DATASOURCE_REACTIVE_URL:postgresql://0.0.0.0:5432/kogito}

quarkus.native.native-image-xmx=8g

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ kogito.service.url=http://0.0.0.0:8080/kie

#Job-service
kogito.jobs-service.url=http://0.0.0.0:8080/kie
kogito.dataindex.http.url=http://0.0.0.0:8080/kie
kogito.data-index.url=http://0.0.0.0:8080/kie

quarkus.kogito.data-index.graphql.ui.always-include=true

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -115,10 +115,9 @@ public CardPageBuildItem pages(
managementInterfaceBuildTimeConfig, launchModeBuildItem, true);

String devUIUrl = getProperty(configurationBuildItem, systemPropertyBuildItems, "kogito.dev-ui.url");
String dataIndexUrl = getProperty(configurationBuildItem, systemPropertyBuildItems, "kogito.dataindex.http.url");
String trustyServiceUrl = getProperty(configurationBuildItem, systemPropertyBuildItems, "kogito.trusty.http.url");
String quarkusHttpHost = ConfigProvider.getConfig().getValue("quarkus.http.host", String.class);
String quarkusHttpPort = ConfigProvider.getConfig().getValue("quarkus.http.port", String.class);
String dataIndexUrl = getProperty(configurationBuildItem, systemPropertyBuildItems, "kogito.data-index.url");
String quarkusHttpHost = ConfigProvider.getConfig().getOptionalValue("quarkus.http.host", String.class).orElse("0.0.0.0");
String quarkusHttpPort = ConfigProvider.getConfig().getOptionalValue("quarkus.http.port", String.class).orElse("8080");

CardPageBuildItem cardPageBuildItem = new CardPageBuildItem();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,6 @@
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import static java.lang.Integer.parseInt;

@ApplicationScoped
public class JBPMDevuiJsonRPCService {
private static final String DATA_INDEX_URL = "kogito.data-index.url";
Expand Down

0 comments on commit 137d1eb

Please sign in to comment.