bootstrap-dev.yml 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. spring:
  2. cloud:
  3. nacos:
  4. discovery:
  5. # 服务注册地址
  6. server-addr: 10.10.10.230:8848
  7. # 命名空间
  8. namespace: sckw-service-platform-dev
  9. # 共享配置
  10. group: sckw-service-platform
  11. config:
  12. # 配置中心地址
  13. server-addr: 10.10.10.230:8848
  14. # 配置文件格式
  15. file-extension: yaml
  16. # 命名空间
  17. namespace: sckw-service-platform-dev
  18. # 共享配置
  19. group: sckw-service-platform
  20. function:
  21. definition: sckwSms;sckwMessage
  22. stream:
  23. binders:
  24. defaultRabbit:
  25. type: rabbit
  26. environment:
  27. spring:
  28. rabbitmq:
  29. virtual-host: /
  30. host: 10.10.10.230
  31. port: 5672
  32. username: sckw
  33. password: Yy123...
  34. bindings:
  35. sckwSms-in-0:
  36. destination: sckw-sms
  37. content-type: application/json
  38. binder: defaultRabbit
  39. group: sckw
  40. sckwSms-out-0:
  41. destination: sckw-sms
  42. content-type: application/json
  43. default-binder: defaultRabbit
  44. group: sckw
  45. sckwMessage-in-0:
  46. destination: sckw-message
  47. content-type: application/json
  48. binder: defaultRabbit
  49. group: sckw
  50. sckwMessage-out-0:
  51. destination: sckw-message
  52. content-type: application/json
  53. binder: defaultRabbit
  54. group: sckw
  55. rabbitmq:
  56. username: sckw
  57. password: Yy123...
  58. host: 10.10.10.230
  59. port: 5672
  60. virtual-host: /
  61. data:
  62. mongodb:
  63. uri: mongodb://sckw:Yy123...@10.10.10.230:27017/sckw?authSource=admin&authMechanism=SCRAM-SHA-1
  64. # dubbo
  65. dubbo:
  66. application:
  67. # 此处没有延用spring.application.name是因为当前项目本身也会注册到nacos中,如果dubbo也延用相同的名称,在nacos服务里会看到注册的producer-server服务数为2
  68. name: example-dubbo-server
  69. protocol:
  70. name: dubbo
  71. port: -1
  72. registry:
  73. # 配置dubbo的注册中心为nacos
  74. address: nacos://${spring.cloud.nacos.discovery.server-addr}
  75. group: ${spring.cloud.nacos.config.group}
  76. protocol: nacos
  77. #use-as-config-center: false
  78. #use-as-metadata-center: false