Update a1-interface with nginx to support https
[sim/a1-interface.git] / near-rt-ric-simulator / src / STD_1.1.3 / main.py
index c46d950..ce0854e 100644 (file)
@@ -164,18 +164,11 @@ def getCounter(countername):
   else:
     return Response("Counter name: "+countername+" not found.",404, mimetype='text/plain')
 
-port_number = 8085
+port_number = 2222
 if len(sys.argv) >= 2:
   if isinstance(sys.argv[1], int):
     port_number = sys.argv[1]
 
-port_number_secure=8185
-
 app.add_api('STD_A1.yaml')
-context=get_security_context()
-if (context == None):
-  print("Start on non-secure port: "+str(port_number))
-  app.run(port=port_number, host="::")
-else:
-  print("Start on secure port: "+str(port_number_secure))
-  app.run(port=port_number_secure, host="::", ssl_context=context)
+
+app.run(port=port_number, host="127.0.0.1", threaded=False)
\ No newline at end of file