testing config: enable named servers

for easier testing of more features
This commit is contained in:
Min RK
2024-04-09 13:44:31 +02:00
parent 9d835a8670
commit 93a34d9874

View File

@@ -6,23 +6,24 @@ to enable testing without administrative privileges.
c = get_config() # noqa c = get_config() # noqa
from jupyterhub.auth import DummyAuthenticator c.JupyterHub.authenticator_class = "dummy"
c.JupyterHub.authenticator_class = DummyAuthenticator
# Optionally set a global password that all users must use # Optionally set a global password that all users must use
# c.DummyAuthenticator.password = "your_password" # c.DummyAuthenticator.password = "your_password"
from jupyterhub.spawner import SimpleLocalProcessSpawner c.JupyterHub.spawner_class = "simple"
c.JupyterHub.spawner_class = SimpleLocalProcessSpawner
# only listen on localhost for testing # only listen on localhost for testing
c.JupyterHub.bind_url = 'http://127.0.0.1:8000' c.JupyterHub.bind_url = 'http://127.0.0.1:8000'
# don't cache static files
c.JupyterHub.tornado_settings = { c.JupyterHub.tornado_settings = {
"no_cache_static": True, "no_cache_static": True,
} }
c.JupyterHub.allow_named_servers = True
c.JupyterHub.default_url = "/hub/home"
# make sure admin UI is available and any user can login
c.JupyterHub.admin_users = {"admin"} c.JupyterHub.admin_users = {"admin"}
c.JupyterHub.allow_all = True c.JupyterHub.allow_all = True