mirror of
https://github.com/EDCD/EDDN.git
synced 2025-06-15 06:42:26 +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():
|
def main():
|
||||||
loadConfig()
|
loadConfig()
|
||||||
configure()
|
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__':
|
if __name__ == '__main__':
|
||||||
|
@ -31,7 +31,8 @@ class _Settings(object):
|
|||||||
# Gateway settings
|
# Gateway settings
|
||||||
###############################################################################
|
###############################################################################
|
||||||
|
|
||||||
GATEWAY_HTTP_PORT = 8080
|
GATEWAY_HTTP_BIND_ADDRESS = "127.0.0.1"
|
||||||
|
GATEWAY_HTTP_PORT = 8081
|
||||||
|
|
||||||
GATEWAY_SENDER_BINDINGS = ["tcp://*:8500"]
|
GATEWAY_SENDER_BINDINGS = ["tcp://*:8500"]
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user