application.yml 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. server:
  2. port: 9090
  3. spring:
  4. application:
  5. name: ruoyi-monitor-admin
  6. profiles:
  7. active: @profiles.active@
  8. logging:
  9. config: classpath:logback-plus.xml
  10. --- # 监控中心服务端配置
  11. spring:
  12. security:
  13. user:
  14. name: @monitor.username@
  15. password: @monitor.password@
  16. boot:
  17. admin:
  18. ui:
  19. title: RuoYi-Vue-Plus服务监控中心
  20. context-path: /admin
  21. # 忽略无用警告
  22. thymeleaf:
  23. check-template-location: false
  24. --- # Actuator 监控端点的配置项
  25. management:
  26. endpoints:
  27. web:
  28. exposure:
  29. include: '*'
  30. endpoint:
  31. health:
  32. show-details: ALWAYS
  33. logfile:
  34. external-file: ./logs/ruoyi-monitor-admin.log
  35. --- # 监控配置
  36. spring.boot.admin.client:
  37. # 增加客户端开关
  38. enabled: true
  39. # 设置 Spring Boot Admin Server 地址
  40. url: http://localhost:9090/admin
  41. instance:
  42. service-host-type: IP
  43. metadata:
  44. username: ${spring.boot.admin.client.username}
  45. userpassword: ${spring.boot.admin.client.password}
  46. username: @monitor.username@
  47. password: @monitor.password@