Skip to content
Permalink
Browse files
Remove eureka & client side loadbalancing
  • Loading branch information
BLasan committed Jun 1, 2022
1 parent d810987 commit a0e07a943ef560f865dd06be422c2bd3f4e1212f
Showing 4 changed files with 13 additions and 11 deletions.
@@ -49,7 +49,7 @@
* @author Myrle Krantz
*/
@SuppressWarnings("unused")
@FeignClient(name="identity-v1", path="/identity/v1", configuration=CustomFeignClientsConfiguration.class)
@FeignClient(path="/identity/v1", url = "http://${kubernetes.identity.service.name}:${kubernetes.identity.server.port}", configuration=CustomFeignClientsConfiguration.class)
public interface IdentityManager extends Anubis {
String REFRESH_TOKEN = "Identity-RefreshToken";
@RequestMapping(value = "/token?grant_type=password", method = RequestMethod.POST,
@@ -45,7 +45,7 @@ bootRepackage {
dependencies {
compile(
[group: 'org.springframework.cloud', name: 'spring-cloud-starter-config'],
[group: 'org.springframework.cloud', name: 'spring-cloud-starter-eureka'],
[group: 'org.springframework.boot', name: 'spring-boot-starter-web'],
[group: 'org.springframework.boot', name: 'spring-boot-starter-jetty'],
[group: 'org.hibernate', name: 'hibernate-validator', version: versions.hibernatevalidator],
[group: 'org.apache.fineract.cn', name: 'lang', version: versions.frameworklang],
@@ -43,7 +43,6 @@
@Configuration
@EnableAutoConfiguration
@EnableWebMvc
@EnableDiscoveryClient
@EnableAsync
@EnableTenantContext
@EnableCassandra
@@ -24,14 +24,6 @@ spring:
config:
enabled: false

eureka:
client:
serviceUrl:
defaultZone: http://localhost:8761/eureka/
registerWithEureka: false
instance:
homePageUrl: "http://${eureka.hostname}:2021/identity/v1/"

server:
port: 2021
contextPath: /identity/v1
@@ -72,3 +64,14 @@ system.publicKey:
identity:
passwordExpiresInDays: 93
timeToChangePasswordAfterExpirationInDays: 4

kubernetes:
identity:
service:
name: identity-service
server:
port: 2021

ribbon:
eureka:
enabled: false

0 comments on commit a0e07a9

Please sign in to comment.