Commit 322d05fa authored by Gottfried Gaisbauer's avatar Gottfried Gaisbauer
Browse files

web service port configurable

parent 3b43f9cc
......@@ -98,7 +98,7 @@ class Aura(AuraLogger):
def start_web_service(self):
try:
self.logger.info("Listening on Port 5000 for API or Webcalls")
Routes(self.scheduler, self.liquidsoapcommunicator, self.messenger)
Routes(self.scheduler, self.liquidsoapcommunicator, self.messenger, self.config)
except OSError as e:
self.messenger.halt()
self.logger.critical("AuraEngine already running? Exception: " + e.strerror + ". Exiting...")
......
......@@ -16,6 +16,9 @@ diskspace_warning_value=1G
# under which value should i stop recording. defaults to 200M
diskspace_critical_value=100M
[web-ui]
web_port=5005
[mail]
mail_server=""
mail_server_port=""
......
......@@ -56,13 +56,13 @@ class Routes:
messenger = None
lqs_communicator = None
def __init__(self, scheduler, lqs_communicator, messenger):
def __init__(self, scheduler, lqs_communicator, messenger, config):
self.scheduler = scheduler
self.messenger = messenger
self.lqs_communicator = lqs_communicator
# when debug is enabled => logging messages appear twice
APP.run() #debug=True)
APP.run(port=config.get("web_port")) #debug=True)
@staticmethod
@APP.route('/')
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment