mirror of
https://github.com/jupyterhub/jupyterhub.git
synced 2025-10-07 18:14:10 +00:00
32 lines
615 B
Python
32 lines
615 B
Python
# our user list
|
|
c.Authenticator.whitelist = [
|
|
'minrk',
|
|
'ellisonbg',
|
|
'willingc',
|
|
]
|
|
|
|
# ellisonbg and willingc have access to a shared server:
|
|
|
|
c.JupyterHub.load_groups = {
|
|
'shared': [
|
|
'ellisonbg',
|
|
'willingc',
|
|
]
|
|
}
|
|
|
|
service_name = 'shared-notebook'
|
|
service_port = 9999
|
|
group_name = 'shared'
|
|
|
|
# start the notebook server as a service
|
|
c.JupyterHub.services = [
|
|
{
|
|
'name': service_name,
|
|
'url': 'http://127.0.0.1:{}'.format(service_port),
|
|
'command': [
|
|
'jupyterhub-singleuser',
|
|
'--group=shared',
|
|
'--debug',
|
|
],
|
|
}
|
|
] |