Configure listen address for restapi via a yaml file

This commit is contained in:
Alexander Kukushkin
2015-05-26 09:07:39 +02:00
parent 3e3acc3d3a
commit cca5bdef8f
3 changed files with 6 additions and 1 deletions
+2 -1
View File
@@ -86,7 +86,8 @@ def main():
governor = Governor(config)
try:
governor.initialize()
RestApiServer(governor).start()
host, port = config['restapi']['listen'].split(':')
RestApiServer(governor, host, port).start()
governor.run()
finally:
governor.touch_member(300) # schedule member removal
+2
View File
@@ -1,4 +1,6 @@
loop_wait: 10
restapi:
listen: 127.0.0.1:8008
etcd:
scope: batman
ttl: 30
+2
View File
@@ -1,4 +1,6 @@
loop_wait: 10
restapi:
listen: 127.0.0.1:8009
etcd:
scope: batman
ttl: 30