matrix/example/consul/config/service-intentions/matrix.hcl

29 lines
510 B
HCL

Kind = "service-intentions"
Name = "matrix"
Sources = [
{
Name = "traefik"
Permissions = [
{
Action = "deny"
HTTP {
PathPrefix = "/_synapse/metrics"
}
},
{
Action = "allow"
HTTP {
PathRegex = "^/_(matrix|synapse)/.*"
Methods = ["GET", "HEAD", "POST", "OPTIONS", "PUT", "DELETE"]
}
},
{
Action = "allow"
HTTP {
Methods = ["GET", "HEAD"]
}
}
]
}
]