区分环境

This commit is contained in:
2024-10-02 11:27:51 +08:00
parent ab842d8694
commit b8d9a72dac
30 changed files with 626 additions and 181 deletions

View File

@@ -6,7 +6,7 @@ Upstreams: # upstreams
Target: 0.0.0.0:8080 # grpc target,the direct grpc server address,for only one node
# Endpoints: [0.0.0.0:8080,192.168.120.1:8080] # grpc endpoints, the grpc server address list, for multiple nodes
# Etcd: # etcd config, if you want to use etcd to discover the grpc server address
# Hosts: [127.0.0.1:2378,127.0.0.1:2379] # etcd hosts
# Hosts: [127.0.0.1:2378,tyapi_etcd:2379] # etcd hosts
# Key: greet.grpc # the discovery key
# protoset mode
ProtoSets:

View File

@@ -2,5 +2,5 @@ Name: {{.serviceName}}.rpc
ListenOn: 0.0.0.0:8080
Etcd:
Hosts:
- 127.0.0.1:2379
- tyapi_etcd:2379
Key: {{.serviceName}}.rpc