jupyterhub_config.py 828 B

12345678910111213141516171819202122232425
  1. c = get_config()
  2. c.Authenticator.allow_all = True
  3. c.Authenticator.allow_existing_users = True
  4. # 管理员用户列表
  5. c.Authenticator.admin_users = {'jupyterhub'}
  6. c.DummyAuthenticator.password = "jupyterhub" # 初始密码设置
  7. c.JupyterHub.admin_access = True
  8. c.LocalAuthenticator.create_system_users=True
  9. #c.Authenticator.admin_users = {'root'} # 管理员用户
  10. #c.DummyAuthenticator.password = "123" # 初始密码设置
  11. # 使用 PAMAuthenticator 作为身份验证类
  12. c.JupyterHub.authenticator_class = 'jupyterhub.auth.PAMAuthenticator'
  13. # 允许自动创建系统用户
  14. c.LocalAuthenticator.create_system_users = True
  15. # 设置每个用户的 book类型 和 工作目录(创建.ipynb文件自动保存的地方)
  16. c.Spawner.notebook_dir = '~'
  17. c.Spawner.default_url = '/lab'
  18. c.Spawner.args = ['--allow-root']