Last active
March 26, 2023 21:04
-
-
Save fboukezzoula/d6fe7f2e296ef54bef8c8c2f91a6450b to your computer and use it in GitHub Desktop.
consul configuration generated files
This file contains hidden or 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 configuration | |
acl = { | |
enabled = true | |
default_policy = "deny" | |
enable_token_persistence = true | |
enable_token_replication = true | |
down_policy = "extend-cache" | |
} |
This file contains hidden or 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
# Data Persistence | |
data_dir = "/etc/consul/data" | |
# Logging | |
log_level = "DEBUG" | |
# Enable service mesh | |
connect { | |
enabled = true | |
} | |
# Addresses and ports | |
addresses { | |
grpc = "127.0.0.1" | |
https = "0.0.0.0" | |
dns = "0.0.0.0" | |
} | |
ports { | |
grpc = 8502 | |
http = 8500 | |
https = 8443 | |
dns = 8600 | |
} | |
# DNS recursors | |
recursors = ["1.1.1.1"] | |
# Disable script checks | |
enable_script_checks = false | |
# Enable local script checks | |
enable_local_script_checks = true |
This file contains hidden or 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
## Server specific configuration for dc1 | |
server = true | |
bootstrap_expect = 1 | |
datacenter = "dc1" | |
client_addr = "127.0.0.1" | |
## UI configuration (1.9+) | |
ui_config { | |
enabled = true | |
} |
This file contains hidden or 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
## TLS Encryption (requires cert files to be present on the server nodes) | |
# tls { | |
# defaults { | |
# ca_file = "/etc/consul/config/consul-agent-ca.pem" | |
# cert_file = "/etc/consul/config/dc1-server-consul-0.pem" | |
# key_file = "/etc/consul/config/dc1-server-consul-0-key.pem" | |
# verify_outgoing = true | |
# verify_incoming = true | |
# } | |
# https { | |
# verify_incoming = false | |
# } | |
# internal_rpc { | |
# verify_server_hostname = true | |
# } | |
# } | |
## TLS Encryption (requires cert files to be present on the server nodes) | |
ca_file = "/etc/consul/config/consul-agent-ca.pem" | |
cert_file = "/etc/consul/config/dc1-server-consul-0.pem" | |
key_file = "/etc/consul/config/dc1-server-consul-0-key.pem" | |
verify_incoming = false | |
verify_incoming_rpc = true | |
verify_outgoing = true | |
verify_server_hostname = true | |
auto_encrypt { | |
allow_tls = true | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment