|
|
@@ -1,15 +1,58 @@
|
|
|
dubbo:
|
|
|
+ application:
|
|
|
+ name: search-service
|
|
|
+ qos-enable: true
|
|
|
+ qos-port: 16107
|
|
|
+ qos-accept-foreign-ip: false
|
|
|
+ scan:
|
|
|
+ base-packages: cn.reghao.tnb.search.app.rpc
|
|
|
+ protocol:
|
|
|
+ name: dubbo
|
|
|
+ host: 127.0.0.1
|
|
|
+ port: 6107
|
|
|
registry:
|
|
|
group: dubbo
|
|
|
address: zookeeper://127.0.0.1:2181
|
|
|
+server:
|
|
|
+ port: 6007
|
|
|
spring:
|
|
|
+ mvc:
|
|
|
+ pathmatch:
|
|
|
+ matching-strategy: ant_path_matcher
|
|
|
+ datasource:
|
|
|
+ driver-class-name: com.mysql.cj.jdbc.Driver
|
|
|
+ type: com.zaxxer.hikari.HikariDataSource
|
|
|
+ hikari:
|
|
|
+ minimum-idle: 5
|
|
|
+ maximum-pool-size: 10
|
|
|
+ auto-commit: true
|
|
|
+ idle-timeout: 30000
|
|
|
+ pool-name: EvaluationHikariCP
|
|
|
+ max-lifetime: 1800000
|
|
|
+ connection-timeout: 30000
|
|
|
+ connection-test-query: SELECT 1
|
|
|
+ url: jdbc:mysql://127.0.0.1/tnb_content_rdb?useSSL=false&useUnicode=true&characterEncoding=UTF-8&serverTimezone=GMT%2b8
|
|
|
+ username: dev
|
|
|
+ password: Dev@123456
|
|
|
+ jpa:
|
|
|
+ show-sql: false
|
|
|
+ open-in-view: true
|
|
|
+ hibernate:
|
|
|
+ ddl-auto: update
|
|
|
+ properties:
|
|
|
+ hibernate.format_sql: true
|
|
|
+ hibernate.naming.physical-strategy: org.hibernate.scripts.model.naming.PhysicalNamingStrategyStandardImpl
|
|
|
+ hibernate.cache.use_second_level_cache: false
|
|
|
+ hibernate.search.backend.directory.type: local-filesystem
|
|
|
+ hibernate.search.backend.directory.root: /opt/data/search_data/hibernate_lucene
|
|
|
+ hibernate.search.backend.analysis.configurer: class:cn.reghao.tnb.search.app.config.MyLuceneAnalysisConfigurer
|
|
|
cloud:
|
|
|
discovery:
|
|
|
enabled: true
|
|
|
data:
|
|
|
mongodb:
|
|
|
host: 127.0.0.1
|
|
|
- database: "tnb_content_rdb"
|
|
|
+ database: "tnb_content_tdb"
|
|
|
authentication-database: admin
|
|
|
username: dev
|
|
|
password: Dev@123456
|
|
|
@@ -18,24 +61,24 @@ spring:
|
|
|
host: 127.0.0.1
|
|
|
port: 6379
|
|
|
password: Dev@123456
|
|
|
- datasource:
|
|
|
- url: jdbc:mysql://127.0.0.1/reghao_bnt_rdb?useSSL=false&useUnicode=true&characterEncoding=UTF-8&serverTimezone=GMT%2b8
|
|
|
- username: dev
|
|
|
- password: Dev@123456
|
|
|
rabbitmq:
|
|
|
host: 127.0.0.1
|
|
|
port: 5672
|
|
|
virtual-host: /
|
|
|
username: dev
|
|
|
password: Dev@123456
|
|
|
+eureka:
|
|
|
+ instance:
|
|
|
+ prefer-ip-address: true
|
|
|
+ client:
|
|
|
+ register-with-eureka: true
|
|
|
+ fetch-registry: true
|
|
|
+ service-url:
|
|
|
+ defaultZone: http://127.0.0.1:6060/eureka/
|
|
|
es:
|
|
|
- host: 192.168.0.10
|
|
|
+ host: 127.0.0.1
|
|
|
port: 9200
|
|
|
username: elastic
|
|
|
password: VLTtN03SSJ4lsyyg56kf
|
|
|
native-lucene-dir: /opt/data/search_data/native_lucene
|
|
|
- hibernate-lucene-dir: /opt/data/search_data/hibernate_lucene
|
|
|
-eureka:
|
|
|
- client:
|
|
|
- service-url:
|
|
|
- defaultZone: http://127.0.0.1:6060/eureka/
|
|
|
+ hibernate-lucene-dir: /opt/data/search_data/hibernate_lucene
|