Simplify
This commit is contained in:
parent
f42114dff2
commit
db6870a955
|
@ -21,7 +21,6 @@ hub:
|
|||
"""
|
||||
import json
|
||||
import os
|
||||
from urllib.parse import urlparse
|
||||
|
||||
from tornado.httpserver import HTTPServer
|
||||
from tornado.ioloop import IOLoop
|
||||
|
@ -47,9 +46,9 @@ hub:
|
|||
)
|
||||
|
||||
http_server = HTTPServer(app)
|
||||
url = urlparse(f'http://{os.environ["PROXY_API_SERVICE_HOST"]}:{os.environ["PROXY_API_SERVICE_PORT"]}')
|
||||
|
||||
http_server.listen(url.port, url.hostname)
|
||||
api_host = os.environ['PROXY_API_SERVICE_HOST']
|
||||
api_port = os.environ['PROXY_API_SERVICE_PORT']
|
||||
http_server.listen(api_port, api_host)
|
||||
|
||||
IOLoop.current().start()
|
||||
if __name__ == '__main__':
|
||||
|
|
Loading…
Reference in a new issue