mirror of
https://github.com/jupyterhub/jupyterhub.git
synced 2025-10-17 15:03:02 +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
|
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
|
||||||
|
Reference in New Issue
Block a user