From 004b4a9ed4a7407ec9186f5ea71f24f94c3c4827 Mon Sep 17 00:00:00 2001 From: Pranav-b-7 Date: Tue, 2 Feb 2021 16:51:04 +0530 Subject: [PATCH] UI redirects to localhost:9000 after login - issue resolved --- gate-web/config/gate.yml | 2 -- .../spinnaker/gate/controllers/RootController.groovy | 6 +----- 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/gate-web/config/gate.yml b/gate-web/config/gate.yml index f8511dff22..7a21a2d046 100644 --- a/gate-web/config/gate.yml +++ b/gate-web/config/gate.yml @@ -4,8 +4,6 @@ server: enabled: true services: - ui: - baseUrl: http://oes-ui:8080 deck: baseUrl: http://localhost:9000 orca: diff --git a/gate-web/src/main/groovy/com/netflix/spinnaker/gate/controllers/RootController.groovy b/gate-web/src/main/groovy/com/netflix/spinnaker/gate/controllers/RootController.groovy index c272635f10..866edd70d1 100644 --- a/gate-web/src/main/groovy/com/netflix/spinnaker/gate/controllers/RootController.groovy +++ b/gate-web/src/main/groovy/com/netflix/spinnaker/gate/controllers/RootController.groovy @@ -27,16 +27,12 @@ import javax.servlet.http.HttpServletResponse @RestController class RootController { - @Value('${services.deck.base-url:}') - URL deckBaseUrl - - @Value('${services.oesui.external-url:}') + @Value('${services.oesui.externalUrl:}') String uiBaseUrl @RequestMapping("/") void root(HttpServletResponse response) { log.info("uiBaseUrl : {}", uiBaseUrl) response.sendRedirect(uiBaseUrl + "/application") - //response.sendRedirect(deckBaseUrl.toString()) } }