Skip to content

Commit

Permalink
Merge pull request #1641 from berghaus/default_hub_url
Browse files Browse the repository at this point in the history
Ensure hub_url is configured before use
  • Loading branch information
manics committed Mar 27, 2023
2 parents 187c22f + 7b0c4b0 commit 32213a4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions helm-chart/binderhub/files/binderhub_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,8 @@ def get_value(key, default=None):
c.BinderHub.build_docker_host = f"unix://{hostSocketDir}/{socketname}.sock"

if c.BinderHub.auth_enabled:
if "hub_url" not in c.BinderHub:
c.BinderHub.hub_url = ""
hub_url = urlparse(c.BinderHub.hub_url)
c.HubOAuth.hub_host = f"{hub_url.scheme}://{hub_url.netloc}"
if "base_url" in c.BinderHub:
Expand Down

0 comments on commit 32213a4

Please sign in to comment.