Here is my config file. I removed all the comments, so everything not on here is the default value. My starting command is just jupyterhub
c.JupyterHub.bind_url = 'http://0.0.0.0:8200'
c.JupyterHub.data_files_path = '/jupyterhub-data'
c.JupyterHub.db_url = 'sqlite:////jupyterhub-db/jupyterhub.sqlite'
c.JupyterHub.hub_port = 8281
c.ConfigurableHTTPProxy.api_url = 'http://0.0.0.0:8201'
c.Spawner.default_url = '/lab'
import pwd, subprocess
def pre_spawn_hook(spawner):
username = spawner.user.name
try:
pwd.getpwnam(username)
except KeyError:
subprocess.check_call(['useradd', '-ms', '/bin/bash', username])
c.Spawner.pre_spawn_hook = pre_spawn_hook
c.Authenticator.admin_users = set('root')