1+ ## Class for authenticating users.
2+ #
3+ # This should be a class with the following form:
4+ #
5+ # - constructor takes one kwarg: `config`, the IPython config object.
6+ #
7+ # with an authenticate method that:
8+ # _class
9+ # - is a coroutine (asyncio or tornado)
10+ # - returns username on success, None on failure
11+ # - takes two arguments: (handler, data),
12+ # where `handler` is the calling web.RequestHandler,
13+ # and `data` is the POST form data from the login page.
14+ #c.JupyterHub.authenticator_class = 'jupyterhub.auth.PAMAuthenticator'
15+ # c.JupyterHub.authenticator_class = 'dummyauthenticator.DummyAuthenticator'
16+ # c.DummyAuthenticator.password = "dummypassword"
17+ c .JupyterHub .authenticator_class = 'tmpauthenticator.TmpAuthenticator'
18+
19+ ## The class to use for spawning single-user servers.
20+ #
21+ # Should be a subclass of Spawner.
22+ #c.JupyterHub.spawner_class = 'jupyterhub.spawner.LocalProcessSpawner'
23+ c .JupyterHub .spawner_class = 'dockerspawner.DockerSpawner'
24+ from jupyter_client .localinterfaces import public_ips
25+ ip = public_ips ()[0 ]
26+ c .JupyterHub .hub_ip = ip
27+ c .DockerSpawner .image = 'netpyne_ui_jupyterspawner'
28+ c .DockerSpawner .remove_containers = True
29+ c .DockerSpawner .remove = True
30+ c .DockerSpawner .debug = True
31+ c .DockerSpawner .network_name = 'jupyterhub_network'
32+
33+ ## Extra arguments to be passed to the single-user server. Only works for the LocalProcessSpawner
34+ #
35+ # Some spawners allow shell-style expansion here, allowing you to use
36+ # environment variables here. Most, including the default, do not. Consult the
37+ # documentation for your spawner to verify!
38+ # c.Spawner.args = ['--library=netpyne_ui', '--NotebookApp.default_url=/geppetto', '--NotebookApp.token=''']
0 commit comments