summaryrefslogtreecommitdiffstats
path: root/gitautodeploy/httpserver.py
diff options
context:
space:
mode:
authorOliver Poignant <oliver@poignant.se>2017-01-04 22:16:25 +0100
committerOliver Poignant <oliver@poignant.se>2017-01-04 22:16:25 +0100
commit1d78db0d8761be078602920793f7d9f85cedcdca (patch)
treeb915dd3464b5fd30fe16864dae4c1a59c5207cbc /gitautodeploy/httpserver.py
parent9f636a727d34db2282a01b4f73755401ad76bded (diff)
downloadGit-Auto-Deploy-1d78db0d8761be078602920793f7d9f85cedcdca.zip
Git-Auto-Deploy-1d78db0d8761be078602920793f7d9f85cedcdca.tar.gz
Git-Auto-Deploy-1d78db0d8761be078602920793f7d9f85cedcdca.tar.bz2
Renamed config options
Diffstat (limited to 'gitautodeploy/httpserver.py')
-rw-r--r--gitautodeploy/httpserver.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/gitautodeploy/httpserver.py b/gitautodeploy/httpserver.py
index 2b4e32e..ea4c64c 100644
--- a/gitautodeploy/httpserver.py
+++ b/gitautodeploy/httpserver.py
@@ -279,7 +279,7 @@ def WebhookRequestHandlerFactory(config, event_store):
def do_HEAD(self):
import json
- if not self._config['web-ui']['enabled'] or not self.client_address[0] in self._config['web-ui']['remote-whitelist']:
+ if not self._config['web-ui-enabled'] or not self.client_address[0] in self._config['web-ui-whitelist']:
self.send_error(403)
return
@@ -288,14 +288,14 @@ def WebhookRequestHandlerFactory(config, event_store):
def do_GET(self):
import json
- if not self._config['web-ui']['enabled'] or not self.client_address[0] in self._config['web-ui']['remote-whitelist']:
+ if not self._config['web-ui-enabled'] or not self.client_address[0] in self._config['web-ui-whitelist']:
self.send_error(403)
return
if self.path == "/api/status":
data = {
'events': self.event_store.dict_repr(),
- 'ws-port': self._config['web-ui']['ws-port']
+ 'web-socket-port': self._config['web-ui-web-socket-port']
}
self.send_response(200, 'OK')
self.send_header('Content-type', 'application/json')