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

     1  server {
     2    api {
     3      base_path = "/cc-private"
     4      access_control = ["jott"]
     5  
     6      endpoint "/no-cc" {
     7        response {
     8          status = 204
     9        }
    10      }
    11  
    12      endpoint "/cc-public" {
    13        response {
    14          status = 204
    15          headers = {
    16            cache-control = "public"
    17          }
    18        }
    19      }
    20    }
    21    api {
    22      base_path = "/no-cc-private"
    23      access_control = ["jott-disable-cc-private"]
    24  
    25      endpoint "/no-cc" {
    26        response {
    27          status = 204
    28        }
    29      }
    30  
    31      endpoint "/cc-public" {
    32        response {
    33          status = 204
    34          headers = {
    35            cache-control = "public"
    36          }
    37        }
    38      }
    39    }
    40  }
    41  
    42  definitions {
    43    jwt "jott" {
    44      signature_algorithm = "HS256"
    45      key = "asdf"
    46    }
    47  
    48    jwt "jott-disable-cc-private" {
    49      signature_algorithm = "HS256"
    50      key = "asdf"
    51      disable_private_caching = true
    52    }
    53  }