mirror of
https://github.com/jupyterhub/jupyterhub.git
synced 2025-10-17 06:52:59 +00:00
testing config: enable named servers
for easier testing of more features
This commit is contained in:
@@ -6,23 +6,24 @@ to enable testing without administrative privileges.
|
||||
|
||||
c = get_config() # noqa
|
||||
|
||||
from jupyterhub.auth import DummyAuthenticator
|
||||
|
||||
c.JupyterHub.authenticator_class = DummyAuthenticator
|
||||
c.JupyterHub.authenticator_class = "dummy"
|
||||
|
||||
# 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
|
||||
c.JupyterHub.spawner_class = "simple"
|
||||
|
||||
# only listen on localhost for testing
|
||||
c.JupyterHub.bind_url = 'http://127.0.0.1:8000'
|
||||
|
||||
# don't cache static files
|
||||
c.JupyterHub.tornado_settings = {
|
||||
"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.allow_all = True
|
||||
|
Reference in New Issue
Block a user