github.com/hellofresh/janus@v0.0.0-20230925145208-ce8de8183c67/assets/apis/example_MultipleDefinitions.json (about) 1 [{ 2 "name" : "exampleFirst", 3 "active" : true, 4 "proxy" : { 5 "preserve_host" : false, 6 "listen_path" : "/exampleFirst/*", 7 "upstreams" : { 8 "balancing": "roundrobin", 9 "targets": [ 10 {"target": "http://localhost:9089/hello-world"} 11 ] 12 }, 13 "strip_path" : false, 14 "append_path" : false, 15 "methods" : ["GET"] 16 }, 17 "plugins": [ 18 { 19 "name": "rate_limit", 20 "enabled": true, 21 "config": { 22 "limit": "5-M", 23 "policy": "local" 24 } 25 } 26 ], 27 "health_check": { 28 "url": "http://localhost:9089/status", 29 "timeout": 3 30 } 31 }, 32 { 33 "name" : "exampleSecond", 34 "active" : true, 35 "proxy" : { 36 "preserve_host" : false, 37 "listen_path" : "/exampleSecond/*", 38 "upstreams" : { 39 "balancing": "roundrobin", 40 "targets": [ 41 {"target": "http://localhost:9089/hello-world"} 42 ] 43 }, 44 "strip_path" : false, 45 "append_path" : false, 46 "methods" : ["GET"] 47 }, 48 "plugins": [ 49 { 50 "name": "rate_limit", 51 "enabled": true, 52 "config": { 53 "limit": "5-M", 54 "policy": "local" 55 } 56 } 57 ], 58 "health_check": { 59 "url": "http://localhost:9089/status", 60 "timeout": 3 61 } 62 }, 63 { 64 "name" : "exampleSecond", 65 "active" : true, 66 "proxy" : { 67 "preserve_host" : false, 68 "listen_path" : "/exampleRepeatedSecond/*", 69 "upstreams" : { 70 "balancing": "roundrobin", 71 "targets": [ 72 {"target": "http://localhost:9089/hello-world"} 73 ] 74 }, 75 "strip_path" : false, 76 "append_path" : false, 77 "methods" : ["GET"] 78 }, 79 "plugins": [ 80 { 81 "name": "rate_limit", 82 "enabled": true, 83 "config": { 84 "limit": "5-M", 85 "policy": "local" 86 } 87 } 88 ], 89 "health_check": { 90 "url": "http://localhost:9089/status", 91 "timeout": 3 92 } 93 }]