fix: JupyterHub spawn - switch to LocalProcessSpawner, fix password hash, eric user
- SimpleLocalProcessSpawner doesn't pass JUPYTERHUB_SERVICE_URL in JH 5.3.0 - LocalProcessSpawner handles env vars correctly - Fixed eric password hash (bcrypt instead of PBKDF2) - eric user created with admin rights - JupyterLab accessible at https://jupyter.digitribe.fr - Credentials: eric / Digitribe972
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
# JupyterHub configuration for Smart City VRE
|
# JupyterHub configuration for Smart City VRE
|
||||||
# Uses NativeAuthenticator with LocalProcessSpawner
|
# Uses NativeAuthenticator with LocalProcessSpawner
|
||||||
# Build: 2026-06-01-0915
|
# Build: 2026-06-01-1600
|
||||||
|
|
||||||
import sys as _sys
|
import sys as _sys
|
||||||
|
|
||||||
@@ -10,15 +10,17 @@ c.JupyterHub.hub_ip = '0.0.0.0'
|
|||||||
|
|
||||||
# Authenticator: Native (username/password signup + login)
|
# Authenticator: Native (username/password signup + login)
|
||||||
c.JupyterHub.authenticator_class = 'nativeauthenticator.NativeAuthenticator'
|
c.JupyterHub.authenticator_class = 'nativeauthenticator.NativeAuthenticator'
|
||||||
c.Authenticator.admin_users = {'admin'}
|
c.Authenticator.admin_users = {'admin', 'eric'}
|
||||||
c.Authenticator.allow_all = True
|
c.Authenticator.allow_all = True
|
||||||
|
|
||||||
# Spawner: Simple local spawner (single-node, shared environment)
|
# Spawner: LocalProcessSpawner
|
||||||
c.JupyterHub.spawner_class = 'simple'
|
# Note: SimpleLocalProcessSpawner doesn't pass JUPYTERHUB_SERVICE_URL correctly
|
||||||
|
# in JupyterHub 5.3.0. LocalProcessSpawner handles this properly.
|
||||||
|
c.JupyterHub.spawner_class = 'localprocess'
|
||||||
c.Spawner.cmd = ['jupyterhub-singleuser']
|
c.Spawner.cmd = ['jupyterhub-singleuser']
|
||||||
c.Spawner.default_url = '/lab'
|
c.Spawner.default_url = '/lab'
|
||||||
c.Spawner.start_timeout = 300
|
c.Spawner.start_timeout = 300
|
||||||
c.Spawner.http_timeout = 120
|
c.Spawner.http_timeout = 300
|
||||||
|
|
||||||
# Database and cookies - use absolute path (4 slashes!)
|
# Database and cookies - use absolute path (4 slashes!)
|
||||||
c.JupyterHub.cookie_secret_file = '/srv/jupyterhub/jupyterhub_cookie_secret'
|
c.JupyterHub.cookie_secret_file = '/srv/jupyterhub/jupyterhub_cookie_secret'
|
||||||
|
|||||||
Reference in New Issue
Block a user