github.com/Go-To-Byte/DouSheng/user_center@v0.0.0-20230524130918-ad531c1a3f6a/etc/config.toml.template (about) 1 [app.grpc] 2 host = "192.168.1.8" 3 port = 8506 4 5 [mysql] 6 host = "127.0.0.1" 7 port = "3306" 8 username = "root" 9 password = "root" 10 database = "dou_sheng" 11 12 [log] 13 level = "debug" 14 dir = "logs" 15 format = "text" 16 to = "stdout" 17 18 # 注册本服务 19 [consul.register] 20 registry_name = "user_center" 21 host = "127.0.0.1" 22 port = 8500 23 tags = ["用户中心", "user_center"] 24 25 # 去发现 api_rooter 服务 26 [consul.discovers.api_rooter] 27 discover_name = "api_rooter" 28 address = "127.0.0.1:8500" 29 30 # 去发现视频服务 31 [consul.discovers.video_service] 32 discover_name = "video_service" 33 address = "127.0.0.1:8500" 34 35 # 去发现关系服务 36 [consul.discovers.relation_service] 37 discover_name = "relation_service" 38 address = "127.0.0.1:8500" 39 40 # 去发现互动服务 41 [consul.discovers.interaction_service] 42 discover_name = "interaction_service" 43 address = "127.0.0.1:8500" 44