rodrigosan88

Untitled

Nov 21st, 2018
148
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.99 KB | None | 0 0
  1. spring:
  2. application:
  3. name: spring-boot-admin-sample-eureka
  4. profiles:
  5. active:
  6. - secure
  7.  
  8.  
  9. # tag::configuration-eureka[]
  10. eureka: #<1>
  11. instance:
  12. leaseRenewalIntervalInSeconds: 10
  13. health-check-url-path: /actuator/health
  14. metadata-map:
  15. startup: ${random.int} #needed to trigger info and endpoint update after restart
  16. client:
  17. registryFetchIntervalSeconds: 5
  18. serviceUrl:
  19. defaultZone: ${EUREKA_SERVICE_URL:http://localhost:8761}/eureka/
  20.  
  21. management:
  22. endpoints:
  23. web:
  24. exposure:
  25. include: "*" #<2>
  26. endpoint:
  27. health:
  28. show-details: ALWAYS
  29. # end::configuration-eureka[]
  30.  
  31. ---
  32. spring:
  33. profiles: insecure
  34.  
  35. ---
  36. spring:
  37. profiles: secure
  38. security:
  39. user:
  40. name: "user"
  41. password: "password"
  42. eureka:
  43. instance:
  44. metadata-map:
  45. user.name: "user" #These two are needed so that the server
  46. user.password: "password" #can access the protected client endpoints
Advertisement
Add Comment
Please, Sign In to add comment