Skip to content

Commit

Permalink
user hub_url_public for auth config if set
Browse files Browse the repository at this point in the history
  • Loading branch information
manics committed Oct 29, 2020
1 parent 6b1dce9 commit 181efcd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion helm-chart/binderhub/files/binderhub_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,8 @@ def get_value(key, default=None):
c.BinderHub.build_namespace = os.environ['BUILD_NAMESPACE']

if c.BinderHub.auth_enabled:
hub_url = urlparse(c.BinderHub.hub_url)
hub_url = urlparse(c.BinderHub.hub_url_public if 'hub_url_public' in c.BinderHub
else c.BinderHub.hub_url)
c.HubOAuth.hub_host = '{}://{}'.format(hub_url.scheme, hub_url.netloc)
if 'base_url' in c.BinderHub:
c.HubOAuth.base_url = c.BinderHub.base_url
Expand Down

0 comments on commit 181efcd

Please sign in to comment.