github.com/avenga/couper@v1.12.2/server/testdata/integration/api/03_couper.hcl (about)

     1  server "multi-api-host1" {
     2    hosts = ["couper.io:9898"]
     3    error_file = "./../server_error.html"
     4  
     5    api {
     6      base_path = "/v2"
     7  	error_file = "./../api_error.json"
     8  
     9      endpoint "/abc" {
    10        proxy {
    11          backend = "anything"
    12        }
    13      }
    14    }
    15  }
    16  
    17  server "multi-api-host2" {
    18    hosts = ["*:9898"]
    19    error_file = "./../server_error.html"
    20  
    21    api {
    22      base_path = "/v3"
    23  	error_file = "./../api_error.json"
    24  
    25      endpoint "/def" {
    26        proxy {
    27          backend = "anything"
    28        }
    29      }
    30    }
    31  }
    32  
    33  definitions {
    34    # backend origin within a definition block gets replaced with the integration test "anything" server.
    35    backend "anything" {
    36      path = "/anything"
    37      origin = env.COUPER_TEST_BACKEND_ADDR
    38    }
    39  }