forked from pangeo-data/pangeo-custom-jupyterhub-templates
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathjupyterhub_config.py
38 lines (31 loc) · 943 Bytes
/
jupyterhub_config.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
import pathlib
from oauthenticator.generic import GenericOAuthenticator
from jupyterhub.spawner import SimpleLocalProcessSpawner
c.JupyterHub.spawner_class = SimpleLocalProcessSpawner
HERE = pathlib.Path(__file__).parent
c.JupyterHub.template_paths = [str(HERE / 'templates')]
c.JupyterHub.authenticator_class = GenericOAuthenticator
c.Authenticator.admin_users = [
'yuvipanda'
]
c.JupyterHub.template_vars = {
'custom': {
'org': {
'name': 'University of Foo',
'logo_url': 'https://jupyter.org/assets/nav_logo.svg',
'url': 'https://jupyter.org',
},
'operated_by': {
'name': 'Operating Org',
'url': 'https://2i2c.org'
},
'funded_by': {
'name': 'Funding Org',
'url': 'https://2i2c.org'
},
'designed_by': {
'name': '2i2c',
'url': 'https://2i2c.org'
}
}
}