Skip to content

Commit

Permalink
Add Spring profile to enable/disable Service Discovery on startup
Browse files Browse the repository at this point in the history
Fixes #3
  • Loading branch information
tiadams committed Dec 5, 2023
1 parent 8306c97 commit 8cd65f8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,5 @@ hs_err_pid*
replay_pid*

/target/*
.idea
.idea
.vscode/settings.json
3 changes: 2 additions & 1 deletion src/main/resources/application.properties
Original file line number Diff line number Diff line change
Expand Up @@ -78,11 +78,12 @@ loinc.url=http://loinc.k8s.bio.scai.fraunhofer.de/api/v1/
## Service Discovery
####################################

eureka.client.enabled=false

eureka.instance.preferIpAddress=true
eureka.client.registerWithEureka=true
eureka.client.fetchRegistry=true
eureka.client.serviceUrl.defaultZone=${EUREKA_URI:http://discovery:8761}/eureka
#eureka.client.serviceUrl.defaultZone=${EUREKA_URI:http://localhost:8761/eureka}
ribbon.eureka.enabled=true

spring.cloud.loadbalancer.ribbon.enabled=false
Expand Down

0 comments on commit 8cd65f8

Please sign in to comment.