Skip to content

Instantly share code, notes, and snippets.

@0xalex88
Created November 12, 2022 20:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save 0xalex88/a609af0698d0dd46b48571ea6baed42b to your computer and use it in GitHub Desktop.
Save 0xalex88/a609af0698d0dd46b48571ea6baed42b to your computer and use it in GitHub Desktop.
## Agents config
datacenter = "aws-us-west-2"
data_dir = "/opt/consul"
encrypt = "xxxx"
verify_incoming = true
verify_outgoing = true
verify_server_hostname = true
node_name = "i-xxxx"
## TLS config
ca_file = "/etc/consul.d/consul-agent-ca.pem"
cert_file = "/etc/consul.d/aws-us-west-1-server-consul-0.pem"
key_file = "/etc/consul.d/aws-us-west-1-server-consul-0-key.pem"
auto_encrypt {
allow_tls = true
}
## Datacenter auto-join
retry_join = ["172.30.xx", "172.30.xx", "172.30.xx"]
## ACL
acl {
enabled = true
default_policy = "allow"
enable_token_persistence = true
}
## Server config
server = true
bootstrap_expect = 4
## Bind/advertise address
bind_addr = "172.30.xx"
## Client address binding
client_addr = "0.0.0.0"
## Service mesh
connect {
enabled = true
}
addresses {
grpc = "127.0.0.1"
}
ports {
grpc = 8502
}
## UI config
ui_config {
enabled = true
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment