Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add config custom #135

Merged
merged 1 commit into from
Jul 12, 2024
Merged

Conversation

consideRatio
Copy link
Member

@consideRatio consideRatio commented Jul 12, 2024

The implementation is like z2jh, which is documented there:

Additional values to pass to the Hub. JupyterHub will not itself look at these, but you can read values in your own custom config via hub.extraConfig. For example:

custom:
 myHost: "https://example.horse"
hub:
 extraConfig:
   myConfig.py: |
     c.MyAuthenticator.host = get_config("custom.myHost")

This can be used to help toggle larger code sections in extraConfig for example.

This mimics z2jh, and is [documented there](https://z2jh.jupyter.org/en/stable/resources/reference.html#custom):

>Additional values to pass to the Hub. JupyterHub will not itself look at these, but you can read values in your own custom config via hub.extraConfig. For example:
>
>```yaml
>custom:
>  myHost: "https://example.horse"
>hub:
>  extraConfig:
>    myConfig.py: |
>      c.MyAuthenticator.host = get_config("custom.myHost")
>```
@consideRatio consideRatio merged commit bc0c6fc into 2i2c-org:main Jul 12, 2024
8 of 9 checks passed
consideRatio pushed a commit that referenced this pull request Jul 12, 2024
…f6aec6f

#135 Merge pull request #135 from consideRatio/pr/add-custom-config
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support custom config accessible from extraConfig
1 participant