mirror of
https://github.com/status-im/consul.git
synced 2025-01-09 13:26:07 +00:00
5105bf3d67
We require any non-wildcard services to match the protocol defined in the listener on write, so that we can maintain a consistent experience through ingress gateways. This also helps guard against accidental misconfiguration by a user. - Update tests that require an updated protocol for ingress gateways
40 lines
655 B
HCL
40 lines
655 B
HCL
enable_central_service_config = true
|
|
|
|
config_entries {
|
|
bootstrap = [
|
|
{
|
|
kind = "proxy-defaults"
|
|
name = "global"
|
|
config {
|
|
protocol = "http"
|
|
}
|
|
},
|
|
{
|
|
kind = "ingress-gateway"
|
|
name = "ingress-gateway"
|
|
|
|
listeners = [
|
|
{
|
|
port = 9999
|
|
protocol = "http"
|
|
services = [
|
|
{
|
|
name = "*"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
port = 9998
|
|
protocol = "http"
|
|
services = [
|
|
{
|
|
name = "s1"
|
|
hosts = ["test.example.com"]
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|