bootstrap.yml 1.1 KB

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