github.com/hellofresh/janus@v0.0.0-20230925145208-ce8de8183c67/examples/front-proxy-mongo/apis/example.json (about)

     1  [
     2      {
     3          "name" : "example",
     4          "active" : true,
     5          "proxy" : {
     6              "preserve_host" : false,
     7              "listen_path" : "/example/*",
     8              "upstreams" : {
     9                  "balancing": "roundrobin",
    10                  "targets": [
    11                      {"target": "http://service1:8080/"}
    12                  ]
    13              },
    14              "strip_path" : false,
    15              "append_path" : false,
    16              "methods" : ["GET"]
    17          },
    18          "health_check": {
    19              "url": "http://service1:8080/status",
    20              "timeout": 3
    21          }
    22      }
    23  ]