bootstrap.yml 967 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. # Tomcat
  2. server:
  3. port: 8080
  4. # Spring
  5. spring:
  6. application:
  7. # 应用名称
  8. name: soc-gateway
  9. profiles:
  10. # 环境配置
  11. active: dev
  12. cloud:
  13. nacos:
  14. discovery:
  15. # 服务注册地址
  16. server-addr: 10.87.10.54:8848
  17. config:
  18. # 配置中心地址
  19. server-addr: 10.87.10.54:8848
  20. # 配置文件格式
  21. file-extension: yml
  22. # 共享配置
  23. shared-configs:
  24. - application-${spring.profiles.active}.${spring.cloud.nacos.config.file-extension}
  25. # group: luojun
  26. sentinel:
  27. #取消控制台懒加载
  28. eager: true
  29. transport:
  30. dashboard: 10.87.10.54:8088
  31. datasource:
  32. ds1:
  33. nacos:
  34. server-addr: 10.87.10.54:8848
  35. dataId: sentinel-soc-gateway
  36. groupId: DEFAULT_GROUP
  37. data-type: json
  38. rule-type: gw-flow
  39. logging:
  40. file:
  41. name: logs/${spring.application.name}/info.log