Last active
January 19, 2022 10:15
-
-
Save carljavier/e3aab725753ca12db19870d9674e8487 to your computer and use it in GitHub Desktop.
Hashicorp Consul Config
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
acl { | |
enabled = true | |
down_policy = "async-cache" | |
default_policy = "deny" | |
} | |
ca_file = "/opt/consul/ca.pem" | |
data_dir = "/opt/consul" | |
datacenter = "sydney" | |
verify_outgoing = true | |
encrypt_verify_incoming = true | |
encrypt_verify_outgoing = true | |
server = false | |
log_level = "INFO" | |
ui = true | |
retry_join = ["provider=aws tag_key=App tag_value=consul"] | |
auto_encrypt { | |
tls = true | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
datacenter = "sydney" | |
data_dir = "/opt/consul" | |
client_addr = "0.0.0.0" | |
ports = { | |
https = 8500 | |
http = -1 | |
} | |
ui_config{ | |
enabled = true | |
} | |
server = true | |
encrypt = "${`consul keygen`}" | |
retry_join = ["provider=aws tag_key=App tag_value=consul"] | |
acl { | |
enabled = true | |
enable_token_persistence = true | |
} | |
connect { | |
enabled = true | |
enable_mesh_gateway_wan_federation = true | |
} | |
auto_encrypt { | |
allow_tls = true | |
} | |
ca_file = "/opt/consul/ca.crt" | |
cert_file = "/opt/consul/tls.crt" | |
key_file = "/opt/consul/tls.key" | |
server_name = "${hostname|dns|fqdn}" | |
verify_incoming = false | |
verify_outgoing = true | |
verify_server_hostname = true | |
verify_incoming_rpc = true |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment