registry.conf 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117
  1. # Copyright 1999-2019 Seata.io Group.
  2. #
  3. # Licensed under the Apache License, Version 2.0 (the "License");
  4. # you may not use this file except in compliance with the License.
  5. # You may obtain a copy of the License at
  6. #
  7. # http://www.apache.org/licenses/LICENSE-2.0
  8. #
  9. # Unless required by applicable law or agreed to in writing, software
  10. # distributed under the License is distributed on an "AS IS" BASIS,
  11. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  12. # See the License for the specific language governing permissions and
  13. # limitations under the License.
  14. registry {
  15. # file 、nacos 、eureka、redis、zk、consul、etcd3、sofa、custom
  16. type = "nacos"
  17. nacos {
  18. application = "seata-server"
  19. serverAddr = "127.0.0.1:8848"
  20. group = "SEATA_GROUP"
  21. namespace = ""
  22. username = ""
  23. password = ""
  24. contextPath = "/foo"
  25. ##if use MSE Nacos with auth, mutex with username/password attribute
  26. #accessKey = ""
  27. #secretKey = ""
  28. ##if use Nacos naming meta-data for SLB service registry, specify nacos address pattern rules here
  29. #slbPattern = ""
  30. }
  31. eureka {
  32. serviceUrl = "http://localhost:8761/eureka"
  33. weight = "1"
  34. }
  35. redis {
  36. serverAddr = "localhost:6379"
  37. db = "0"
  38. password = ""
  39. timeout = "0"
  40. }
  41. zk {
  42. serverAddr = "127.0.0.1:2181"
  43. sessionTimeout = 6000
  44. connectTimeout = 2000
  45. username = ""
  46. password = ""
  47. }
  48. consul {
  49. serverAddr = "127.0.0.1:8500"
  50. aclToken = ""
  51. }
  52. etcd3 {
  53. serverAddr = "http://localhost:2379"
  54. }
  55. sofa {
  56. serverAddr = "127.0.0.1:9603"
  57. region = "DEFAULT_ZONE"
  58. datacenter = "DefaultDataCenter"
  59. group = "SEATA_GROUP"
  60. addressWaitTime = "3000"
  61. }
  62. file {
  63. name = "file.conf"
  64. }
  65. custom {
  66. name = ""
  67. }
  68. }
  69. config {
  70. # file、nacos 、apollo、zk、consul、etcd3、springCloudConfig、custom
  71. type = "file"
  72. nacos {
  73. serverAddr = "127.0.0.1:8848"
  74. namespace = ""
  75. group = "SEATA_GROUP"
  76. username = ""
  77. password = ""
  78. contextPath = "/bar"
  79. ##if use MSE Nacos with auth, mutex with username/password attribute
  80. #accessKey = ""
  81. #secretKey = ""
  82. dataId = "seata.properties"
  83. }
  84. consul {
  85. serverAddr = "127.0.0.1:8500"
  86. key = "seata.properties"
  87. aclToken = ""
  88. }
  89. apollo {
  90. appId = "seata-server"
  91. apolloMeta = "http://192.168.1.204:8801"
  92. namespace = "application"
  93. apolloAccesskeySecret = ""
  94. }
  95. zk {
  96. serverAddr = "127.0.0.1:2181"
  97. sessionTimeout = 6000
  98. connectTimeout = 2000
  99. username = ""
  100. password = ""
  101. nodePath = "/seata/seata.properties"
  102. }
  103. etcd3 {
  104. serverAddr = "http://localhost:2379"
  105. key = "seata.properties"
  106. }
  107. file {
  108. name = "file.conf"
  109. }
  110. custom {
  111. name = ""
  112. }
  113. }