Commit f1cc808e authored by Sviatoslav Nekhaienko's avatar Sviatoslav Nekhaienko
Browse files

refactoring

parent c59994fc
......@@ -11,7 +11,7 @@ public class Config {
private static final String DEFAULT_INDEXER_HOST = "";
private static final String DEFAULT_SEARCH_HOST = "";
private static final String DEFAULT_STORAGE_HOST = "";
private static final String DEFAULT_SCHEMA_HOST = "";
private static final String DEFAULT_HOST = "";
private static final String DEFAULT_DATA_PARTITION_ID_TENANT1 = "";
private static final String DEFAULT_DATA_PARTITION_ID_TENANT2 = "";
private static final String DEFAULT_SEARCH_INTEGRATION_TESTER = "";
......@@ -23,6 +23,7 @@ public class Config {
private static final String DEFAULT_ENTITLEMENTS_DOMAIN = "";
private static final String SCHEMA_PATH = "/api/schema-service/v1";
public static int getPort() {
return Integer.parseInt(getEnvironmentVariableOrDefaultValue("ELASTIC_PORT", String.valueOf(PORT)));
......@@ -81,7 +82,7 @@ public class Config {
}
public static String getSchemaBaseURL() {
return getEnvironmentVariableOrDefaultValue("HOST", DEFAULT_SCHEMA_HOST) + "/api/schema-service/v1";
return getEnvironmentVariableOrDefaultValue("HOST", DEFAULT_HOST) + SCHEMA_PATH;
}
public static String getEntitlementsDomain() {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment