Try another means of setting url
This commit is contained in:
parent
7e9643f9b6
commit
f42114dff2
|
@ -41,13 +41,13 @@ hub:
|
|||
def main():
|
||||
app = Application(
|
||||
[
|
||||
('/services/?', RefreshHandler),
|
||||
('/services/refresh-token', RefreshHandler),
|
||||
(r'.*', RefreshHandler),
|
||||
]
|
||||
)
|
||||
|
||||
http_server = HTTPServer(app)
|
||||
url = urlparse(os.environ['JUPYTERHUB_SERVICE_URL'])
|
||||
url = urlparse(f'http://{os.environ["PROXY_API_SERVICE_HOST"]}:{os.environ["PROXY_API_SERVICE_PORT"]}')
|
||||
|
||||
http_server.listen(url.port, url.hostname)
|
||||
|
||||
|
|
Loading…
Reference in a new issue