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

     1  server {
     2    endpoint "/anon" {
     3      proxy {
     4        url = "{{ .origin }}/"
     5      }
     6    }
     7  
     8    endpoint "/ref" {
     9      proxy {
    10        backend = "be"
    11      }
    12    }
    13  
    14    endpoint "/catch" {
    15      proxy {
    16        backend = "be"
    17      }
    18  
    19      error_handler "backend_unhealthy" {
    20        response {
    21          status = 418
    22        }
    23      }
    24    }
    25  }
    26  
    27  definitions {
    28    backend "be" {
    29      origin = "{{ .origin }}"
    30      beta_health {
    31        expected_status = [204]
    32        interval = "250ms"
    33      }
    34    }
    35  }