- Fix JupyterHub: sqlite db_url absolute path (was double-nested /srv/jupyterhub/srv/jupyterhub) - Create user eric as admin in JupyterHub (id=2, authorized) - Fix OpenRemote mbtiles: bounds metadata = world (-180,-85,180,85) for free zoom - OR map API confirmed working: center=[-61,14.5], minZoom=0, bounds=Martinique - Add Hermes Dashboard WebUI + TUI chat service (localhost:9119, auto-start at boot) - Add generate_martinique_mbtiles.py script (future tile generation) Known issues: - JupyterHub spawn timeout (singleuser server slow to start, increased to 120s) - OR mbtiles still contains Netherlands vector tiles (need Martinique tiles) - Kafka, Trino still in restart loop (separate fix needed)
33 lines
969 B
Python
33 lines
969 B
Python
# JupyterHub configuration for Smart City VRE
|
|
|
|
c.JupyterHub.ip = '0.0.0.0'
|
|
c.JupyterHub.port = 8000
|
|
c.JupyterHub.hub_ip = '0.0.0.0'
|
|
|
|
# Authenticator: Native (username/password signup + login)
|
|
c.JupyterHub.authenticator_class = 'nativeauthenticator.NativeAuthenticator'
|
|
c.Authenticator.admin_users = {'admin'}
|
|
c.Authenticator.allow_all = True
|
|
|
|
# Spawner - use DockerSpawner or simple with correct cmd
|
|
c.JupyterHub.spawner_class = 'simple'
|
|
c.Spawner.cmd = ['jupyterhub-singleuser']
|
|
c.Spawner.http_timeout = 120
|
|
c.Spawner.start_timeout = 120
|
|
|
|
# Database and cookies - use absolute paths
|
|
c.JupyterHub.cookie_secret_file = '/srv/jupyterhub/jupyterhub_cookie_secret'
|
|
c.JupyterHub.db_url = 'sqlite:////srv/jupyterhub/jupyterhub.sqlite'
|
|
|
|
# Base URL
|
|
c.JupyterHub.base_url = '/'
|
|
|
|
# Trust forwarded headers from Traefik
|
|
c.JupyterHub.tornado_settings = {
|
|
'headers': {
|
|
'Content-Security-Policy': "frame-ancestors 'self'"
|
|
}
|
|
}
|
|
|
|
c.JupyterHub.shutdown_on_logout = False
|