Open johakoch opened 1 year ago
Attributes in a block are defined by Couper's HCL flavour; in contrast to keys in an object type value (like add_response_headers
), which are free to choose by the config writer.
So, if there should be a block, which can potentially appear anywhere in the config, the block must have an attribute with an object type value, like
proxy {
declare {
vars = {
expires_header = backend_responses.default.headers.expires
http_date_format = "%a, %e %b %Y %T GMT"
}
}
...
}
However, this may look quite verbose.
Provide a way to use locally defined variables
vars
/variables
/declare
Example: