From 24bf0a6c674c75db24827e7f37e6b27c8cf9042d Mon Sep 17 00:00:00 2001
From: Abdellatif Kebraoui <Kebraoui.abdellatif@gmail.com>
Date: Fri, 28 Mar 2025 18:50:15 +0100
Subject: [PATCH] [FEAT] update Eureka client configuration in
 application-cloud.yml to enable registration and registry fetching

---
 src/main/resources/application-cloud.yml | 9 ++-------
 1 file changed, 2 insertions(+), 7 deletions(-)

diff --git a/src/main/resources/application-cloud.yml b/src/main/resources/application-cloud.yml
index ae1b6d6..cf6dd18 100644
--- a/src/main/resources/application-cloud.yml
+++ b/src/main/resources/application-cloud.yml
@@ -22,15 +22,10 @@ eureka:
   client:
     serviceUrl:
       defaultZone: http://eureka-service-682610574114.europe-west1.run.app/
+    register-with-eureka: true
+    fetch-registry: true
   instance:
     hostname: usermanagement-service-682610574114.europe-west1.run.app
-    securePortEnabled: true
-    nonSecurePortEnabled: false
-    securePort: 443
-    statusPageUrl: http://${eureka.instance.hostname}/actuator/info
-    healthCheckUrl: http://${eureka.instance.hostname}/actuator/health
-    homePageUrl: http://${eureka.instance.hostname}/
-    preferIpAddress: false
     instanceId: ${eureka.instance.hostname}:${spring.application.name}:${random.value}
     leaseRenewalIntervalInSeconds: 30
     leaseExpirationDurationInSeconds: 90
-- 
GitLab