github.com/avenga/couper@v1.12.2/server/testdata/integration/endpoint_eval/08_couper.hcl (about) 1 server "protected" { 2 error_file = "./../server_error.html" 3 4 api { 5 error_file = "./../api_error.json" 6 7 endpoint "/{origin}" { 8 path = "/set/by/endpoint/unset/by/backend" 9 proxy { 10 backend "anything" { 11 path = "/anything" 12 origin = "http://${request.path_params.origin}" 13 hostname = request.path_params.hostname 14 set_response_headers = { 15 x-origin = request.path_params.origin 16 } 17 openapi { 18 file = "08_schema.yaml" 19 } 20 } 21 } 22 } 23 } 24 } 25 26 definitions { 27 # backend origin within a definition block gets replaced with the integration test "anything" server. 28 backend "anything" { 29 path = "/not-found-anything" 30 origin = env.COUPER_TEST_BACKEND_ADDR 31 openapi { 32 file = "not-there.yml" 33 } 34 } 35 }