-
-
Save detailyang/4480861230f753b02df4cf6f309bcb99 to your computer and use it in GitHub Desktop.
mosn test config
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"servers": [ | |
{ | |
"default_log_path": "stdout", | |
"listeners": [ | |
{ | |
"name": "serverListener", | |
"address": "127.0.0.1:2046", | |
"bind_port": true, | |
"log_path": "stdout", | |
"filter_chains": [ | |
{ | |
"tls_context": {}, | |
"filters": [ | |
{ | |
"type": "proxy", | |
"config": { | |
"downstream_protocol": "Http1", | |
"upstream_protocol": "Http1", | |
"router_config_name": "server_router" | |
} | |
}, | |
{ | |
"type": "connection_manager", | |
"config": { | |
"router_config_name": "server_router", | |
"virtual_hosts": [ | |
{ | |
"name": "serverHost", | |
"domains": [ | |
"*" | |
], | |
"routers": [ | |
{ | |
"match": { | |
"prefix": "/" | |
}, | |
"route": { | |
"cluster_name": "serverCluster" | |
} | |
} | |
] | |
} | |
] | |
} | |
} | |
] | |
} | |
] | |
}, | |
{ | |
"name": "serverListener http2", | |
"address": "127.0.0.1:2047", | |
"bind_port": true, | |
"log_path": "stdout", | |
"filter_chains": [ | |
{ | |
"tls_context": {}, | |
"filters": [ | |
{ | |
"type": "proxy", | |
"config": { | |
"downstream_protocol": "Http2", | |
"upstream_protocol": "Http1", | |
"router_config_name": "server_router" | |
} | |
}, | |
{ | |
"type": "connection_manager", | |
"config": { | |
"router_config_name": "server_router", | |
"virtual_hosts": [ | |
{ | |
"name": "serverHost", | |
"domains": [ | |
"*" | |
], | |
"routers": [ | |
{ | |
"match": { | |
"prefix": "/" | |
}, | |
"route": { | |
"cluster_name": "serverCluster" | |
} | |
} | |
] | |
} | |
] | |
} | |
} | |
] | |
} | |
] | |
} | |
] | |
} | |
], | |
"cluster_manager": { | |
"clusters": [ | |
{ | |
"Name": "serverCluster", | |
"type": "SIMPLE", | |
"lb_type": "LB_RANDOM", | |
"max_request_per_conn": 1024, | |
"conn_buffer_limit_bytes": 32768, | |
"hosts": [ | |
{ | |
"address": "127.0.0.1:8080" | |
} | |
] | |
} | |
] | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment