registry.conf 2.0 KB

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