github.com/avenga/couper@v1.12.2/server/testdata/endpoints/07_couper.hcl (about)

     1  server "protected" {
     2    api {
     3      base_path      = "/v1"
     4      error_file     = "./../integration/api_error.json"
     5      access_control = ["BA"]
     6  
     7      endpoint "/{path}" {
     8        proxy {
     9          backend {
    10            path   = request.path_params.path
    11            origin = env.COUPER_TEST_BACKEND_ADDR
    12          }
    13        }
    14      }
    15    }
    16  }
    17  
    18  definitions {
    19    basic_auth "BA" {
    20      password = "secret"
    21    }
    22  }