github.com/avenga/couper@v1.12.2/server/testdata/integration/config/02_couper.hcl (about) 1 server "backends" { 2 api { 3 endpoint "/anything" { 4 add_query_params = { 5 bar = "3" 6 } 7 proxy { 8 backend { 9 origin = env.COUPER_TEST_BACKEND_ADDR 10 add_response_headers = { 11 foo = "4" 12 } 13 add_query_params = { 14 bar = "4" 15 } 16 } 17 } 18 } 19 20 endpoint "/" { 21 proxy { 22 backend "b" { 23 add_response_headers = { 24 foo = "4" 25 } 26 } 27 } 28 } 29 30 endpoint "/get" { 31 add_query_params = { 32 bar = "3" 33 } 34 proxy { 35 backend "a" { 36 add_response_headers = { 37 foo = "3" 38 } 39 add_query_params = { 40 bar = "4" 41 } 42 } 43 } 44 } 45 } 46 } 47 48 definitions { 49 backend "b" { 50 origin = env.COUPER_TEST_BACKEND_ADDR 51 set_response_headers = { 52 foo = "1" 53 } 54 set_query_params = { 55 bar = "1" 56 } 57 } 58 backend "a" { 59 origin = env.COUPER_TEST_BACKEND_ADDR 60 path = "/anything" 61 set_response_headers = { 62 foo = "1" 63 } 64 set_query_params = { 65 bar = "1" 66 } 67 } 68 } 69 70 settings { 71 no_proxy_from_env = true 72 }