mirror of https://github.com/status-im/consul.git
23 lines
345 B
Bash
23 lines
345 B
Bash
#!/bin/bash
|
|
|
|
set -euo pipefail
|
|
|
|
upsert_config_entry primary '
|
|
kind = "proxy-defaults"
|
|
name = "global"
|
|
config {
|
|
protocol = "tcp"
|
|
}
|
|
'
|
|
upsert_config_entry primary '
|
|
kind = "mesh"
|
|
peering {
|
|
peer_through_mesh_gateways = true
|
|
}
|
|
'
|
|
|
|
register_services primary
|
|
|
|
gen_envoy_bootstrap s1 19000 primary
|
|
gen_envoy_bootstrap mesh-gateway 19001 primary true
|