dandi / dandi-hub

Infrastructure and code for the dandihub
https://hub.dandiarchive.org
Other
11 stars 23 forks source link

Merge old and new jupyterhub config file #108

Closed asmacdo closed 8 months ago

asmacdo commented 8 months ago

The value specified for hub.extraConfig is evaluated as Python code at the end of the jupyterhub_config.py file JupyterHub load https://z2jh.jupyter.org/en/stable/administrator/advanced.html#arbitrary-extra-code-and-configuration-in-jupyterhub-config-py

Dandihub uses this extraConfig to authenticate users via GET request to https://api.dandiarchive.org/api/users/search/?username={username}"

The old config (including python file*) comes from https://github.com/dandi/dandi-hub/blob/dandi/config.yaml.j2

*In the jupyterhub config, extraConfig is executed as python. I just moved it into a python file.