Skip to content

JupyterHub apiUrl detection fails when hub.baseUrl is set #383

Open
@TomAugspurger

Description

@TomAugspurger

The Jupyterhub helm chart includes a hub.baseUrl for serving the hub under a path other than /, e.g. /jupyter/. I believe this breaks the automatic API setting at

api_url = "http://{HUB_SERVICE_HOST}:{HUB_SERVICE_PORT}/hub/api".format(**os.environ)
.

I'm not sure if the baseUrl is available where that code is running, so it may be hard to detect the url automatically.

The workaround is to explicitly set the URL

gateway:
  auth:
    jupyterhub:
      apiUrl: http://proxy-http:8000/jupyter/hub/api

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions