mirror of
https://github.com/status-im/consul.git
synced 2025-01-09 21:35:52 +00:00
f40833d094
- Validate that this cannot be set on a 'tcp' listener nor on a wildcard service. - Add Hosts field to api and test in consul config write CLI - xds: Configure envoy with user-provided hosts from ingress gateways
40 lines
655 B
HCL
40 lines
655 B
HCL
enable_central_service_config = true
|
|
|
|
config_entries {
|
|
bootstrap = [
|
|
{
|
|
kind = "ingress-gateway"
|
|
name = "ingress-gateway"
|
|
|
|
listeners = [
|
|
{
|
|
port = 9999
|
|
protocol = "http"
|
|
services = [
|
|
{
|
|
name = "*"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
port = 9998
|
|
protocol = "http"
|
|
services = [
|
|
{
|
|
name = "s1"
|
|
hosts = ["test.example.com"]
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
{
|
|
kind = "proxy-defaults"
|
|
name = "global"
|
|
config {
|
|
protocol = "http"
|
|
}
|
|
}
|
|
]
|
|
}
|