lemonldap-ng/consul/config/service-intentions/lemonldap-ng.hcl

31 lines
660 B
HCL
Raw Normal View History

2024-01-03 21:04:11 +01:00
Kind = "service-intentions"
Name = "[[ .instance ]][[ .consul.suffix ]]"
Sources = [
{
Name = "[[ (merge .llng.portal .).traefik.instance ]]"
Permissions = [
[[- if not .llng.api.traefik.enabled ]]
# Prevent access to the API as it's disabled
{
Action = "deny"
HTTP {
PathRegex = "^/index\\.psgi/(config|sessions)"
}
},
[[- end ]]
{
Action = "deny"
HTTP {
2024-01-04 10:55:49 +01:00
PathRegex = "^/(reload|status)"
2024-01-03 21:04:11 +01:00
}
},
{
Action = "allow"
HTTP {
Methods = ["GET", "HEAD", "POST", "OPTIONS", "PUT", "DELETE", "PATCH"]
}
}
]
}
]