confd global configuration (otherwise specified as commandline options)
backend = "redis"
nodes = ["localhost:6379"]
client_key = "<<THE-XXXX-PASSWORD>>"
interval = 10
A configuration instructing confd what to query in the backend to drive a specific template. This directory can contain many template drivers.
[template]
src = "my-template.tmpl"
dest = "/etc/nginx/conf.d/default.conf"
owner = "nginx"
mode = "0644"
keys = [
"/myapp/suggestions/drink"
]
check_cmd = "/usr/sbin/nginx -t -c /etc/nginx/nginx.conf"
reload_cmd = "/usr/sbin/nginx -s reload"
The Nginx template driven by the template driver.
server {
listen 80;
server_name localhost;
location / {
add_header Content-Type text/plain;
return 200 '{{getv "/myapp/suggestions/drink"}}\n';
}
}