2018-04-03 18:10:59 +00:00
|
|
|
# Example proxy config with everything specified
|
|
|
|
|
|
|
|
proxy_id = "foo"
|
|
|
|
token = "11111111-2222-3333-4444-555555555555"
|
|
|
|
|
|
|
|
proxied_service_id = "web"
|
|
|
|
proxied_service_namespace = "default"
|
|
|
|
|
|
|
|
# Assumes running consul in dev mode from the repo root...
|
|
|
|
dev_ca_file = "connect/testdata/ca1-ca-consul-internal.cert.pem"
|
|
|
|
dev_service_cert_file = "connect/testdata/ca1-svc-web.cert.pem"
|
|
|
|
dev_service_key_file = "connect/testdata/ca1-svc-web.key.pem"
|
|
|
|
|
|
|
|
public_listener {
|
2018-04-25 13:53:30 +00:00
|
|
|
bind_address = "127.0.0.1"
|
|
|
|
bind_port= "9999"
|
2018-04-03 18:10:59 +00:00
|
|
|
local_service_address = "127.0.0.1:5000"
|
|
|
|
}
|
|
|
|
|
|
|
|
upstreams = [
|
|
|
|
{
|
|
|
|
local_bind_address = "127.0.0.1:6000"
|
|
|
|
destination_name = "db"
|
|
|
|
destination_namespace = "default"
|
|
|
|
destination_type = "service"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
local_bind_address = "127.0.0.1:6001"
|
|
|
|
destination_name = "geo-cache"
|
|
|
|
destination_namespace = "default"
|
|
|
|
destination_type = "prepared_query"
|
|
|
|
}
|
|
|
|
]
|