I managed to startup (spawn) jupyter hub from a user connection using c.JupyterHub.authenticator_class = 'firstuseauthenticator.FirstUseAuthenticator'
. At the end I get in the browser: " A Jupyter Server is running."
I can look at the output in the shell or log to see, that a server was startet at 127.0.0.1:some_random_port
. What I need is, that users from remote can connect and see the ip-address and port of the server.
I added to the config file:
c.ConfigurableHTTPProxy.command = [
'configurable-http-proxy',
'--ip', '0.0.0.0',
'--port', '8002',
'--api-ip', '127.0.0.1',
'--api-port', '8001',
'--error-target', 'http://127.0.0.1:8081/hub/error',
'--log-level', 'info'
]
but on startup i see
[34m[D 2023-08-23 16:15:27.004 JupyterHub proxy:751]e(Be[m Proxy cmd: ['configurable-http-proxy', '--ip', '0.0.0.0', '--port', '8002', '--api-ip', '127.0.0.1', '--api-port', '8001', '--error-target', 'http://127.0.0.1:8081/hub/error', '--log-level', 'info', '--ip', '', '--port', '8002', '--api-ip', '127.0.0.1', '--api-port', '8001', '--error-target', 'http://127.0.0.1:8081/hub/error', '--log-level', 'info']
This means that somwhere the server sets its own values and ignores mine, because the spanw is still on 127.0.0.1
How to set the configuration to be visible from remote and to give the user the information of the server or better redirect to the running server?