mirror of
https://github.com/EDCD/EDDN.git
synced 2025-04-21 02:57:38 +03:00
Bind gateway to localhost by default (e.g. and then proxy via nginx)
This commit is contained in:
parent
b0ec0de6ca
commit
802633d3ef
@ -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__':
|
||||
|
@ -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"]
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user