Skip to content

Instantly share code, notes, and snippets.

@No9
Created December 23, 2018 01:19
Show Gist options
  • Save No9/7a7f3dd96281879403063b48ba0b6246 to your computer and use it in GitHub Desktop.
Save No9/7a7f3dd96281879403063b48ba0b6246 to your computer and use it in GitHub Desktop.
Pilot Sample JSON
{
"consul": "consul:8500",
"preStart": "/bin/reload-nginx.sh preStart",
"logging": {
"level": "DEBUG",
"format": "text"
},
"services": [
{
"name": "nginx",
"port": 80,
"interfaces": ["eth1", "eth0"],
"health": "/usr/bin/curl -o /dev/null --fail -s http://localhost/health",
"poll": 10,
"ttl": 25
}
],
"backends": [
{
"name": "sales",
"poll": 3,
"onChange": "/bin/reload-nginx.sh onChange"
},
{
"name": "customers",
"poll": 4,
"onChange": "/bin/reload-nginx.sh onChange"
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment