Skip to content

Commit

Permalink
Merge pull request #4 from SCAI-BIO/tiadams/issue3
Browse files Browse the repository at this point in the history
Add Spring profile to enable/disable Service Discovery on startup
  • Loading branch information
tiadams authored Dec 5, 2023
2 parents 8306c97 + 8cd65f8 commit a5c6ee1
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 a5c6ee1

Please sign in to comment.