github.com/avenga/couper@v1.12.2/server/testdata/integration/backends/08_couper.hcl (about) 1 server { 2 endpoint "/**" { 3 proxy { 4 backend = "be" 5 } 6 } 7 } 8 9 definitions { 10 backend "be" { 11 origin = "${env.COUPER_TEST_BACKEND_ADDR}" 12 set_response_headers = { 13 x-healthy-1 = backend.health.healthy ? "true" : "false" 14 x-healthy-2 = backends.be.health.healthy ? "true" : "false" 15 x-rp-1 = backend_request.path 16 x-rp-2 = backend_requests.default.path 17 x-rs-1 = backend_response.status 18 x-rs-2 = backend_responses.default.status 19 } 20 custom_log_fields = { 21 healthy_1 = backend.health.healthy 22 healthy_2 = backends.be.health.healthy 23 rp_1 = backend_request.path 24 rp_2 = backend_requests.default.path 25 rs_1 = backend_response.status 26 rs_2 = backend_responses.default.status 27 } 28 } 29 }