Consul configuration. server.json is only put onto the server. Every other file is on both server and client in consuls config directory. The encrypt key is a new one of course and the tls files you have to generate on your own. I followed https://www.digitalocean.com/community/tutorials/how-to-secure-consul-with-tls-encryption-on-ubuntu-14-04. …
{ | |
"check": { | |
"id": "apphealth", | |
"name": "App Healthy Check", | |
"script": "nc -z localhost 5678 || exit 2", | |
"interval": "2s" | |
} | |
} |
{ | |
"data_dir": "/tmp/consul", | |
"start_join": ["10.101.16.66"], | |
"log_level": "warn" | |
} |
{ | |
"encrypt": "GNkWrPBNrd2N/F7GoiYZ2g==" | |
} |
{ | |
"server": true, | |
"bootstrap_expect": 3 | |
} |
{ | |
"service": { | |
"name": "service", | |
"tags": [ | |
"web" | |
], | |
"port": 8000 | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment