github.com/avenga/couper@v1.12.2/server/testdata/integration/api/02_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  
     8      error_file = "./../api_error.json"
     9  
    10      endpoint "/" {
    11        proxy {
    12          backend = "anything"
    13        }
    14      }
    15    }
    16  }
    17  
    18  server "multi-api-host2" {
    19    hosts = ["example.com:9898"]
    20    error_file = "./../server_error.html"
    21  
    22    api {
    23      base_path = "/v3"
    24  
    25      error_file = "./../api_error.json"
    26  
    27      endpoint "/" {
    28        proxy {
    29          backend = "anything"
    30        }
    31      }
    32    }
    33  }
    34  
    35  definitions {
    36    # backend origin within a definition block gets replaced with the integration test "anything" server.
    37    backend "anything" {
    38      path = "/anything"
    39      origin = env.COUPER_TEST_BACKEND_ADDR
    40    }
    41  }