onlyoffice-docserver/consul/config/service-intentions/onlyoffice.hcl

22 lines
415 B
HCL

Kind = "service-intentions"
Name = "[[ .oo.instance ]][[ .consul.suffix ]]"
Sources = [
{
Name = "[[ .traefik.instance ]]"
Permissions = [
{
Action = "deny"
HTTP {
PathRegex = "^(\\/[\\d]+\\.[\\d]+\\.[\\d]+[\\.|-][\\d]+)?\\/(internal|info)(\\/.*)$"
}
},
{
Action = "allow"
HTTP {
PathPrefix = "/"
}
}
]
}
]