#
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements.  See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not use this file except in compliance with
# the License.  You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#

registry {
  # file 、nacos 、eureka、redis、zk、consul、etcd3、sofa、custom、raft、seata
  type = "file"

  raft {
      metadata-max-age-ms = 30000
      serverAddr = "127.0.0.1:7091"
      username = "seata"
      password = "seata"
      tokenValidityInMilliseconds = 1740000
   }

  nacos {
    application = "seata-server"
    serverAddr = "127.0.0.1:8848"
    group = "SEATA_GROUP"
    namespace = ""
    contextPath = ""
    ##1.The following configuration is for the open source version of Nacos
    username = ""
    password = ""
    ##2.The following configuration is for the MSE Nacos on aliyun
    #accessKey = ""
    #secretKey = ""
    ##3.The following configuration is used to deploy on Aliyun ECS or ACK without authentication
    #ramRoleName = ""
    ##if use Nacos naming meta-data for SLB service registry, specify nacos address pattern rules here
    #slbPattern = ""
  }
  seata {
    server-addr = "127.0.0.1:8081"
    namespace = "public"
    heartbeat-period = 5000
  }
  eureka {
    serviceUrl = "http://localhost:8761/eureka"
    weight = "1"
  }
  redis {
    serverAddr = "localhost:6379"
    db = "0"
    password = ""
    timeout = "0"
  }
  zk {
    serverAddr = "127.0.0.1:2181"
    sessionTimeout = 6000
    connectTimeout = 2000
    username = ""
    password = ""
  }
  consul {
    serverAddr = "127.0.0.1:8500"
    aclToken = ""
  }
  etcd3 {
    serverAddr = "http://localhost:2379"
  }
  sofa {
    serverAddr = "127.0.0.1:9603"
    region = "DEFAULT_ZONE"
    datacenter = "DefaultDataCenter"
    group = "SEATA_GROUP"
    addressWaitTime = "3000"
  }
  file {
    name = "file.conf"
  }
  custom {
    name = ""
  }
}

config {
  # file、nacos 、apollo、zk、consul、etcd3、springCloudConfig、custom
  type = "file"
  raft {
    metadataAaxAgeMs = 30000
    serverAddr = "127.0.0.1:7091"
    username= "seata"
    password= "seata"
    tokenValidityInMilliseconds= "1740000"
  }
  nacos {
    serverAddr = "127.0.0.1:8848"
    namespace = ""
    group = "SEATA_GROUP"
    contextPath = ""
    dataId = "seata.properties"
    ##1.The following configuration is for the open source version of Nacos
    username = ""
    password = ""
    ##2.The following configuration is for the MSE Nacos on aliyun
    #accessKey = ""
    #secretKey = ""
    ##3.The following configuration is used to deploy on Aliyun ECS or ACK without authentication
    #ramRoleName = ""
  }
  consul {
    serverAddr = "127.0.0.1:8500"
	key = "seata.properties"
    aclToken = ""
  }
  apollo {
    appId = "seata-server"
    apolloMeta = "http://192.168.1.204:8801"
    namespace = "application"
    apolloAccesskeySecret = ""
    cluster = ""
  }
  zk {
    serverAddr = "127.0.0.1:2181"
    sessionTimeout = 6000
    connectTimeout = 2000
    username = ""
    password = ""
    nodePath = "/seata/seata.properties"
  }
  etcd3 {
    serverAddr = "http://localhost:2379"
    key = "seata.properties"
  }
  file {
    name = "file.conf"
  }
  custom {
    name = ""
  }
}
