Configure service via env or etcd.