Skip to content

Commit

Permalink
🐛 fix configurations overwritting
Browse files Browse the repository at this point in the history
  • Loading branch information
Estebans441 committed Oct 6, 2024
1 parent 4a1c183 commit 61137b5
Show file tree
Hide file tree
Showing 7 changed files with 32 additions and 21 deletions.
10 changes: 7 additions & 3 deletions src/main/resources/config/application-dev.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@

eureka:
client:
service-url:
defaultZone: ${EUREKA_SERVER_URL:http://10.43.101.114:8761/eureka}
defaultZone: ${EUREKA_SERVER_URL:http://10.43.101.114:8761/eureka}
# To report to Eureka when this service is up discovery-service
registerWithEureka: true
instance:
ip-address: 10.43.100.241
ip-address: 10.43.100.241
prefer-ip-address: true
lease-renewal-interval-in-seconds: 10
lease-expiration-duration-in-seconds: 30
7 changes: 6 additions & 1 deletion src/main/resources/config/application-prod1.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,10 @@ eureka:
client:
service-url:
defaultZone: ${EUREKA_SERVER_URL:http://10.43.101.72:8761/eureka}
# To report to Eureka when this service is up discovery-service
registerWithEureka: true
instance:
ip-address: 10.43.101.55
ip-address: 10.43.101.55
prefer-ip-address: true
lease-renewal-interval-in-seconds: 10
lease-expiration-duration-in-seconds: 30
7 changes: 6 additions & 1 deletion src/main/resources/config/application-prod2.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,10 @@ eureka:
client:
service-url:
defaultZone: ${EUREKA_SERVER_URL:http://10.43.101.72:8761/eureka}
# To report to Eureka when this service is up discovery-service
registerWithEureka: true
instance:
ip-address: 10.43.101.141
ip-address: 10.43.101.141
prefer-ip-address: true
lease-renewal-interval-in-seconds: 10
lease-expiration-duration-in-seconds: 30
7 changes: 6 additions & 1 deletion src/main/resources/config/application-qa1.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,10 @@ eureka:
client:
service-url:
defaultZone: ${EUREKA_SERVER_URL:http://10.43.100.223:8761/eureka}
# To report to Eureka when this service is up discovery-service
registerWithEureka: true
instance:
ip-address: 10.43.101.156
ip-address: 10.43.101.156
prefer-ip-address: true
lease-renewal-interval-in-seconds: 10
lease-expiration-duration-in-seconds: 30
7 changes: 6 additions & 1 deletion src/main/resources/config/application-qa2.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,10 @@ eureka:
client:
service-url:
defaultZone: ${EUREKA_SERVER_URL:http://10.43.100.223:8761/eureka}
# To report to Eureka when this service is up discovery-service
registerWithEureka: true
instance:
ip-address: 10.43.101.44
ip-address: 10.43.101.44
prefer-ip-address: true
lease-renewal-interval-in-seconds: 10
lease-expiration-duration-in-seconds: 30
10 changes: 0 additions & 10 deletions src/main/resources/config/application.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,3 @@

eureka:
client:
# To report to Eureka when this service is up discovery-service
registerWithEureka: true
instance:
prefer-ip-address: true
lease-renewal-interval-in-seconds: 10
lease-expiration-duration-in-seconds: 30

# Actuator
management:
endpoints:
Expand Down
5 changes: 1 addition & 4 deletions src/main/resources/config/users-service-keveldev.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
spring:
datasource:
url: 'jdbc:postgresql://ep-autumn-shape-a51h6m0r.us-east-2.aws.neon.tech/users'
eureka:
client:
registerWithEureka: false
url: 'jdbc:postgresql://ep-autumn-shape-a51h6m0r.us-east-2.aws.neon.tech/users'

0 comments on commit 61137b5

Please sign in to comment.