Bind gateway to localhost by default (e.g. and then proxy via nginx)

This commit is contained in:
James Muscat 2015-07-06 16:10:29 +01:00
parent b0ec0de6ca
commit 802633d3ef
2 changed files with 3 additions and 2 deletions

View File

@ -213,7 +213,7 @@ class MalformedUploadError(Exception):
def main():
loadConfig()
configure()
run(host='0.0.0.0', port=Settings.GATEWAY_HTTP_PORT, server='gevent')
run(host=Settings.GATEWAY_HTTP_BIND_ADDRESS, port=Settings.GATEWAY_HTTP_PORT, server='gevent')
if __name__ == '__main__':

View File

@ -31,7 +31,8 @@ class _Settings(object):
# Gateway settings
###############################################################################
GATEWAY_HTTP_PORT = 8080
GATEWAY_HTTP_BIND_ADDRESS = "127.0.0.1"
GATEWAY_HTTP_PORT = 8081
GATEWAY_SENDER_BINDINGS = ["tcp://*:8500"]