Version 0
Closed this issue · 0 comments
abhiyerra commented
- Connect to etcd.
- Read a configuration for the service under /services
Configuration for reading the services:
{
"service_name": "name",
"hostnames": ["hostname", "hostname2"]
"ssl": true|false,
"cert_path": "/path/to/cert",
}
- Watch the /services path for changes. For each of the services update the
- Generate config for nginx based on what is read
- Check and update the nginx configuration file
- Start or restart the service.
Maintanance:
- Update README
Client:
- Create a directory in /sarpa/:service_name
- Create a random child in the directory with key=host value=ip. Set ttl=30seconds
- On quit kill the child if possible