application-prod.yml 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. server:
  2. port: 8080
  3. spring:
  4. datasource:
  5. url: jdbc:postgresql://192.168.0.72:5432/datacenter
  6. username: postgres
  7. password: cGVyc2FneV8yMDIwcXdlIUAj
  8. # spring-cloud相关配置
  9. eureka:
  10. client: #客户端注册进eureka服务列表内
  11. service-url:
  12. defaultZone: http://frame:123456@192.168.100.33:9931/integrated-eureka/eureka/
  13. enable-self-preservation: false # 设为false,关闭自我保护
  14. eviction-interval-timer-in-ms: 5000 # 清理间隔(单位毫秒,默认是60*1000)启用主动失效,
  15. instance:
  16. #不加的话我看过eureka注册界面,是以docker容器的container id注册过去的,譬如container id为abcde,
  17. #那么当访问该微服务时,eureka以http://abcde/xxx,去访问的,当然是访问不到该服务.
  18. #配置下面的选项后,就会以内网ip加端口去访问就能访问到了。
  19. prefer-ip-address: true
  20. instance-id: ${spring.cloud.client.ip-address}:${spring.application.name}:${server.port}
  21. rabbitmq:
  22. host: 192.168.100.32
  23. port: 9936
  24. username: pbsage
  25. password: pbsage123
  26. #虚拟host 可以不设置,使用server默认host
  27. virtual-host: /test
  28. saga:
  29. dataPlatform: http://39.102.40.239:9970
  30. data_org: http://172.172.173.22:8080
  31. data_rwd: http://172.172.173.12:9932
  32. data_dic: http://172.172.173.21:8080
  33. mqtopid:
  34. exchange: exchange-dmp
  35. routingKey:
  36. custom: # 自定义类型
  37. #true 代表eureka false 代表 http
  38. eurekaorhttp: false
  39. # 服务名
  40. servicename: #注册中心使用,服务名
  41. DMPORG: DMP-ORG #物理3世界
  42. DMPRWD: DMP-RWD #中台
  43. DMPDIC: DMP-DIC #字典