Skip to content

Commit 64e90db

Browse files
revert bridge port handling
revert bridge port handling
1 parent f995e70 commit 64e90db

File tree

2 files changed

+6
-7
lines changed

2 files changed

+6
-7
lines changed

src/main/java/com/ericsson/ei/frontend/utils/WebControllerUtils.java

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ public class WebControllerUtils {
4343
@Value("${ei.frontend.service.host:#{null}}")
4444
private String frontendServiceHost;
4545

46-
@Value("${server.port:#{null}}")
46+
@Value("${ei.frontend.service.port:#{null}}")
4747
private int frontendServicePort;
4848

4949
@Value("${ei.frontend.context.path:#{null}}")
@@ -76,19 +76,18 @@ public void init() throws IOException {
7676
/**
7777
* Formats the parameters in the class to an URL as String.
7878
*
79-
* @return String
80-
* URL to this service
79+
* @return String URL to this service
8180
*/
8281
public String getFrontEndServiceUrl() {
8382
String requestedUrl = null;
8483
String http = "http";
8584
String contextPath = "";
8685
if (useSecureHttpFrontend) {
87-
http = "https";
86+
http = "https";
8887
}
8988

9089
if (frontendContextPath != null && !frontendContextPath.isEmpty()) {
91-
contextPath = ("/" + frontendContextPath).replace("//", "/");
90+
contextPath = ("/" + frontendContextPath).replace("//", "/");
9291
}
9392

9493
requestedUrl = String.format("%s://%s:%d%s", http, frontendServiceHost, frontendServicePort, contextPath);
@@ -101,8 +100,7 @@ public String getFrontEndServiceUrl() {
101100
* BackendInformation for this name, or null if no name was found.
102101
*
103102
* @param httpSession
104-
* @return String
105-
* URL from found BackendInformation
103+
* @return String URL from found BackendInformation
106104
*/
107105
public String getBackEndServiceUrl(HttpSession httpSession) {
108106
String activeInstance = null;

src/main/resources/application.properties

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ spring.jackson.default-property-inclusion=non_null
77

88
######## EI Front-End
99
server.port=8080
10+
ei.frontend.service.port=${server.port}
1011
ei.frontend.service.host=localhost
1112
ei.frontend.context.path=
1213

0 commit comments

Comments
 (0)