application-dev.yml 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. dubbo:
  2. application:
  3. name: search-service
  4. qos-enable: true
  5. qos-port: 16107
  6. qos-accept-foreign-ip: false
  7. scan:
  8. base-packages: cn.reghao.tnb.search.app.rpc
  9. protocol:
  10. name: dubbo
  11. host: 127.0.0.1
  12. port: 6107
  13. registry:
  14. group: dubbo
  15. address: zookeeper://127.0.0.1:2181
  16. server:
  17. port: 6007
  18. spring:
  19. mvc:
  20. pathmatch:
  21. matching-strategy: ant_path_matcher
  22. datasource:
  23. driver-class-name: com.mysql.cj.jdbc.Driver
  24. type: com.zaxxer.hikari.HikariDataSource
  25. hikari:
  26. minimum-idle: 5
  27. maximum-pool-size: 10
  28. auto-commit: true
  29. idle-timeout: 30000
  30. pool-name: EvaluationHikariCP
  31. max-lifetime: 1800000
  32. connection-timeout: 30000
  33. connection-test-query: SELECT 1
  34. url: jdbc:mysql://127.0.0.1/tnb_content_rdb?useSSL=false&useUnicode=true&characterEncoding=UTF-8&serverTimezone=GMT%2b8
  35. username: dev
  36. password: Dev@123456
  37. jpa:
  38. show-sql: false
  39. open-in-view: true
  40. hibernate:
  41. ddl-auto: update
  42. properties:
  43. hibernate.format_sql: true
  44. hibernate.naming.physical-strategy: org.hibernate.scripts.model.naming.PhysicalNamingStrategyStandardImpl
  45. hibernate.cache.use_second_level_cache: false
  46. hibernate.search.backend.directory.type: local-filesystem
  47. hibernate.search.backend.directory.root: /opt/data/search_data/hibernate_lucene
  48. hibernate.search.backend.analysis.configurer: class:cn.reghao.tnb.search.app.config.MyLuceneAnalysisConfigurer
  49. cloud:
  50. discovery:
  51. enabled: true
  52. data:
  53. mongodb:
  54. host: 127.0.0.1
  55. database: "tnb_content_rdb"
  56. authentication-database: admin
  57. username: dev
  58. password: Dev@123456
  59. redis:
  60. database: 0
  61. host: 127.0.0.1
  62. port: 6379
  63. password: Dev@123456
  64. rabbitmq:
  65. host: 127.0.0.1
  66. port: 5672
  67. virtual-host: /
  68. username: dev
  69. password: Dev@123456
  70. eureka:
  71. instance:
  72. prefer-ip-address: true
  73. client:
  74. register-with-eureka: true
  75. fetch-registry: true
  76. service-url:
  77. defaultZone: http://127.0.0.1:6060/eureka/
  78. es:
  79. host: 127.0.0.1
  80. port: 9200
  81. username: elastic
  82. password: VLTtN03SSJ4lsyyg56kf
  83. native-lucene-dir: /opt/data/search_data/native_lucene
  84. hibernate-lucene-dir: /opt/data/search_data/hibernate_lucene