提交 c9f96d69 创建 作者: 宋海霞's avatar 宋海霞

增加新文件

上级 311c2367
https://jupyterhub.readthedocs.io/en/stable/installation-guide-hard.html
import os
os.environ['GITLAB_HOST'] = 'http://192.168.0.106'
c.JupyterHub.admin_access = True
from oauthenticator.gitlab import LocalGitLabOAuthenticator
c.JupyterHub.authenticator_class = LocalGitLabOAuthenticator
c.LocalGitLabOAuthenticator.login_service='codecode.net'
c.GitLabOAuthenticator.oauth_callback_url = 'http://192.168.0.107/jupyter/hub/oauth_callback'
c.LocalGitLabOAuthenticator.client_id = '66f488cda42451d8189c2996f1de6d50f5f9909c5acf3898d207eca40bab40fe'
c.LocalGitLabOAuthenticator.client_secret = 'e24ef88fa8367066846a8ced1c16a0cf475b917f7cd275515e8e11f0f2eedca3'
c.LocalAuthenticator.create_system_users = True
c.Authenticator.add_user_cmd = ['adduser', '-q', '--gecos', '""', '--disabled-password', '--force-badname']
c.JupyterHub.bind_url = 'http://:8000/jupyter'
c.Spawner.default_url = '/lab'
#c.Authenticator.allowed_users = {'engintime','shx', 'test'}
#c.Authenticator.admin_users = {'engintime'}
\ No newline at end of file
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论