import sys c.JupyterHub.services = [ { 'name': 'whoami-api', 'url': 'http://127.0.0.1:10101', 'command': [sys.executable, './whoami.py'], }, { 'name': 'whoami-oauth', 'url': 'http://127.0.0.1:10102', 'command': [sys.executable, './whoami-oauth.py'], 'oauth_roles': ['user'], }, ] c.JupyterHub.load_roles = [ { "name": "user", # grant all users access to all services "scopes": ["access:services", "self"], } ] # dummy spawner and authenticator for testing, don't actually use these! c.JupyterHub.authenticator_class = 'dummy' c.JupyterHub.spawner_class = 'simple' c.JupyterHub.ip = '127.0.0.1' # let's just run on localhost while dummy auth is enabled