Return full url in REST API

Hello!

Please, explain me how to configure JH in order to get full url in response hub/api/users/:name in field servers.NAME.url and progress_url

{
"servers": {
        "my_server": {
            "name": "my_server",
            "last_activity": "2024-04-22T13:29:09.659447Z",
            "started": "2024-04-22T13:29:09.659447Z",
            "pending": "spawn",
            "ready": false,
            "stopped": false,
            "url": "MY_ORG.com/user/my_user/my_server/",
            "progress_url": "MY_ORG.com/hub/api/users/my_user/servers/my_server/progress",
        }
    }
}

I tried to use bind_url, but it did not help me.

JupyterHub does not return the full URL because it doesn’t know its own public address in general.

public_url is a new option in 5.0, which allows us to compute this value, but it is not yet added to the API.

2 Likes