| # |
| # 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 |
| type = "file" |
| |
| nacos { |
| application = "seata-server" |
| serverAddr = "127.0.0.1:8848" |
| group = "SEATA_GROUP" |
| namespace = "" |
| username = "" |
| password = "" |
| contextPath = "" |
| ##if use MSE Nacos with auth, mutex with username/password attribute |
| #accessKey = "" |
| #secretKey = "" |
| ##if use Nacos naming meta-data for SLB service registry, specify nacos address pattern rules here |
| #slbPattern = "" |
| } |
| 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 { |
| metadata-max-age-ms = 30000 |
| serverAddr = "127.0.0.1:8848" |
| } |
| nacos { |
| serverAddr = "127.0.0.1:8848" |
| namespace = "" |
| group = "SEATA_GROUP" |
| username = "" |
| password = "" |
| contextPath = "" |
| ##if use MSE Nacos with auth, mutex with username/password attribute |
| #accessKey = "" |
| #secretKey = "" |
| dataId = "seata.properties" |
| } |
| 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 = "" |
| } |
| } |