Skip to content

Commit

Permalink
Set JUPYTERHUB_SERVICE_NAME
Browse files Browse the repository at this point in the history
  • Loading branch information
consideRatio committed Oct 12, 2022
1 parent 681466c commit b09d282
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
2 changes: 2 additions & 0 deletions helm-chart/binderhub/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,8 @@ spec:
name: "{{ include "jupyterhub.hub.fullname" . }}"
key: hub.services.binder.apiToken
{{- if .Values.config.BinderHub.auth_enabled }}
- name: JUPYTERHUB_SERVICE_NAME
value: binder
- name: JUPYTERHUB_API_URL
value: {{ (print (.Values.config.BinderHub.hub_url_local | default .Values.config.BinderHub.hub_url | trimSuffix "/") "/hub/api/") }}
- name: JUPYTERHUB_BASE_URL
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,3 +26,9 @@
c.HubOAuth.hub_prefix = c.BinderHub.base_url + "hub/"
c.HubOAuth.oauth_redirect_uri = "http://127.0.0.1:8585/oauth_callback"
c.HubOAuth.oauth_client_id = "service-binder"
# We declare this environment variable, as it is used to set
# c.HubAuth.access_scopes's default value of relevance.
#
# ref: https://github.com/jupyterhub/jupyterhub/blob/5997614f452a3cfebfa541800012a914d37f3ec8/jupyterhub/services/auth.py#L358-L378
#
os.environ["JUPYTERHUB_SERVICE_NAME"] = "binder"

0 comments on commit b09d282

Please sign in to comment.