application.yml 1.62 KB
server:
  port: 8001
    
spring:
  application:
    name: project-gis
  serverlet:
    encoding:
      charset: utf-8
      force: true
  main:
    allow-bean-definition-overriding: true
  cloud:
    nacos:
      discovery:
        server-addr: nacos-server:8848
        group: project
      config:
        server-addr: nacos-server:8848
        group: project
        file-extension: yaml
  config:
    import:
      - optional:nacos:project-gis.yaml
      - optional:nacos:datasource-config.yaml
#      - optional:nacos:redis-config.yaml
  data:
    elasticsearch:
      cluster_name: dituhui-cluster
      cluster_nodes: 10.0.5.40:52000
  kafka:
    producer:
      retries: 0
      acks: 1
      value-serializer: org.apache.kafka.common.serialization.StringSerializer
    bootstrap-servers: http://kafka:9092
    consumer:
      group-id: mpGroup
    template:
      default-topic: middleplatform-area
  redis:
    host: redis
    port: 6379
    database: 0
    password: 123456
    jedis:
      pool:
        max-active: 32
        min-idle: 0
        max-idle: 8
        max-wait: -1

      
# AreaDataset pg数据库
area:
  server: project-pg:5432
  db: wes
  user: postgres
  password: postgres


# geometry 服务依赖配置
geometry:
  ribbon:
    ReadTimeout: 10000
    ConnectTimeout: 2000
    MaxAutoRetriesNextServer: 3
    MaxAutoRetries: 1
    OkToRetryOnAllOperations: true
    ServerListRefreshInterval: 2000

seata:
  application-id: ${spring.application.name}
  tx-service-group: ${spring.application.name}-group
  service:
    vgroup-mapping:
      project-gis-group: default
    grouplist:
      default: seata-server:8091