added a definition with repeated name(but different listen_path) that must be ignored when file is parsed
"url": "http://localhost:9089/status",
"timeout": 3
}
+},
+{
+ "name" : "exampleSecond",
+ "active" : true,
+ "proxy" : {
+ "preserve_host" : false,
+ "listen_path" : "/exampleRepeatedSecond/*",
+ "upstreams" : {
+ "balancing": "roundrobin",
+ "targets": [
+ {"target": "http://localhost:9089/hello-world"}
+ ]
+ },
+ "strip_path" : false,
+ "append_path" : false,
+ "methods" : ["GET"]
+ },
+ "plugins": [
+ {
+ "name": "rate_limit",
+ "enabled": true,
+ "config": {
+ "limit": "5-M",
+ "policy": "local"
+ }
+ }
+ ],
+ "health_check": {
+ "url": "http://localhost:9089/status",
+ "timeout": 3
+ }
}]
