summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFabio Verboso <fverboso@unime.it>2019-01-08 18:33:56 +0100
committerFabio Verboso <fverboso@unime.it>2019-01-08 18:33:56 +0100
commit4eb23145334b512a0807d48337b7518920bef8b2 (patch)
tree5397300009be88a13e4ed8e9d3b9d609d627f95f
parent36c20a1ef6bd472a62be32fa0e83fcff41691bff (diff)
Reserved ports for proxy
Nginx spawns webservices on different ports instead of the default ones (80 and 443) to let them be free to be used by other programs. We are going to use 50000 and 60000 (removed from the random range) Change-Id: I19208f961c41b0e9833dd4b402123fa5ac63f62a
Notes
Notes (review): Code-Review+2: Fabio Verboso <fverboso@unime.it> Workflow+1: Fabio Verboso <fverboso@unime.it> Verified+2: Zuul Submitted-by: Zuul Submitted-at: Tue, 08 Jan 2019 17:56:45 +0000 Reviewed-on: https://review.openstack.org/629271 Project: openstack/iotronic Branch: refs/heads/master
-rw-r--r--iotronic/conductor/endpoints.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/iotronic/conductor/endpoints.py b/iotronic/conductor/endpoints.py
index cf3ddc2..396a4cf 100644
--- a/iotronic/conductor/endpoints.py
+++ b/iotronic/conductor/endpoints.py
@@ -50,7 +50,7 @@ def get_best_agent(ctx):
50 50
51 51
52def random_public_port(): 52def random_public_port():
53 return random.randint(50000, 60000) 53 return random.randint(50001, 59999)
54 54
55 55
56def manage_result(res, wamp_rpc_call, board_uuid): 56def manage_result(res, wamp_rpc_call, board_uuid):