dubbotripleproxy/pixiu/conf.yaml (64 lines of code) (raw):
#
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
#
---
static_resources:
listeners:
- name: "dubbo-listener"
protocol_type: "TCP"
address:
socket_address:
address: "0.0.0.0"
port: 8888
filter_chains:
filters:
- name: dgp.filter.network.dubboconnectionmanager
config:
route_config:
routes:
- match:
prefix: "/com.dubbogo.pixiu.TripleUserService"
methods:
- "*"
route:
cluster: "triple-server"
cluster_not_found_response_code: 505
dubbo_filters:
- name: dgp.filter.dubbo.proxy
config:
protocol: tri
- name: "triple-listener"
protocol_type: "TRIPLE"
address:
socket_address:
address: "0.0.0.0"
port: 9999
filter_chains:
filters:
- name: dgp.filter.network.dubboconnectionmanager
config:
route_config:
routes:
- match:
prefix: "com.dubbogo.pixiu.DubboUserService"
methods:
- "*"
route:
cluster: "dubbo-server"
cluster_not_found_response_code: 505
dubbo_filters:
- name: dgp.filter.dubbo.proxy
config:
protocol: dubbo
clusters:
- name: "triple-server"
lb_policy: "lb"
endpoints:
- id: 1
socket_address:
address: 127.0.0.1
port: 20001
- name: "dubbo-server"
lb_policy: "lb"
endpoints:
- id: 1
socket_address:
address: 127.0.0.1
port: 20000