Files
jupyterhub/testing/jupyterhub_config.py
2024-04-04 15:58:44 +02:00

29 lines
742 B
Python

"""sample jupyterhub config file for testing
configures jupyterhub with dummyauthenticator and simplespawner
to enable testing without administrative privileges.
"""
c = get_config() # noqa
from jupyterhub.auth import DummyAuthenticator
c.JupyterHub.authenticator_class = DummyAuthenticator
# Optionally set a global password that all users must use
# c.DummyAuthenticator.password = "your_password"
from jupyterhub.spawner import SimpleLocalProcessSpawner
c.JupyterHub.spawner_class = SimpleLocalProcessSpawner
# only listen on localhost for testing
c.JupyterHub.bind_url = 'http://127.0.0.1:8000'
c.JupyterHub.tornado_settings = {
"no_cache_static": True,
}
c.JupyterHub.admin_users = {"admin"}
c.JupyterHub.allow_all = True