ocr / jupyterhub_config.py
Tekknoman's picture
Update jupyterhub_config.py
f78253b
raw
history blame contribute delete
460 Bytes
import os
c.JupyterHub.authenticator_class = "github"
c.OAuthenticator.oauth_callback_url = "https://tekknoman-ocr.hf.space/hub/oauth_callback"
c.OAuthenticator.client_id = os.environ['CLIENT_ID']
c.OAuthenticator.client_secret = os.environ['CLIENT_SECRET']
c.Authenticator.allowed_users = {'EloiMusk', 'slowlorizz'}
c.Authenticator.admin_users = {'EloiMusk'}
c.JupyterHub.spawner_class = 'dockerspawner.DockerSpawner'
c.Spawner.notebook_dir = '~/notebooks'