etc.tpl 759 B

123456789101112131415161718
  1. Name: gateway-example # gateway name
  2. Host: localhost # gateway host
  3. Port: 8888 # gateway port
  4. Upstreams: # upstreams
  5. - Grpc: # grpc upstream
  6. Target: 0.0.0.0:8080 # grpc target,the direct grpc server address,for only one node
  7. # Endpoints: [0.0.0.0:8080,192.168.120.1:8080] # grpc endpoints, the grpc server address list, for multiple nodes
  8. # Etcd: # etcd config, if you want to use etcd to discover the grpc server address
  9. # Hosts: [127.0.0.1:2378,127.0.0.1:2379] # etcd hosts
  10. # Key: greet.grpc # the discovery key
  11. # protoset mode
  12. ProtoSets:
  13. - hello.pb
  14. # Mappings can also be written in proto options
  15. # Mappings: # routes mapping
  16. # - Method: get
  17. # Path: /ping
  18. # RpcPath: hello.Hello/Ping