registry.conf 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  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
  16. type = "file"
  17. nacos {
  18. serverAddr = "localhost"
  19. namespace = ""
  20. cluster = "default"
  21. }
  22. eureka {
  23. serviceUrl = "http://localhost:8761/eureka"
  24. application = "default"
  25. weight = "1"
  26. }
  27. redis {
  28. serverAddr = "localhost:6379"
  29. db = "0"
  30. }
  31. zk {
  32. cluster = "default"
  33. serverAddr = "127.0.0.1:2181"
  34. sessionTimeout = 6000
  35. connectTimeout = 2000
  36. }
  37. consul {
  38. cluster = "default"
  39. serverAddr = "127.0.0.1:8500"
  40. }
  41. etcd3 {
  42. cluster = "default"
  43. serverAddr = "http://localhost:2379"
  44. }
  45. sofa {
  46. serverAddr = "127.0.0.1:9603"
  47. application = "default"
  48. region = "DEFAULT_ZONE"
  49. datacenter = "DefaultDataCenter"
  50. cluster = "default"
  51. group = "SEATA_GROUP"
  52. addressWaitTime = "3000"
  53. }
  54. file {
  55. name = "file.conf"
  56. }
  57. }
  58. config {
  59. # file、nacos 、apollo、zk、consul、etcd3
  60. type = "file"
  61. nacos {
  62. serverAddr = "localhost"
  63. namespace = ""
  64. }
  65. consul {
  66. serverAddr = "127.0.0.1:8500"
  67. }
  68. apollo {
  69. appId = "seata-server"
  70. apolloMeta = "http://192.168.1.204:8801"
  71. }
  72. zk {
  73. serverAddr = "127.0.0.1:2181"
  74. sessionTimeout = 6000
  75. connectTimeout = 2000
  76. }
  77. etcd3 {
  78. serverAddr = "http://localhost:2379"
  79. }
  80. file {
  81. name = "file.conf"
  82. }
  83. }