Skip to content

Commit

Permalink
Fix location of subdomain_host in schema
Browse files Browse the repository at this point in the history
  • Loading branch information
manics committed Oct 21, 2024
1 parent 9658c24 commit 7152952
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 8 deletions.
2 changes: 1 addition & 1 deletion docs/source/administrator/security.md
Original file line number Diff line number Diff line change
Expand Up @@ -496,7 +496,7 @@ This would restrict the access to only two IP addresses: `111.111.111.111` and `

You can reduce the chance of cross-origin attacks by giving each user
their own subdomain `<user>.jupyter.example.org`.
This requires setting [`hub.config.subdomain_host`](schema_hub.config.subdomain_host), creating a wildcard DNS record `*.jupyter.example.org`, and creating a wildcard SSL certificate.
This requires setting [`subdomain_host`](schema_hub.config.JupyterHub.subdomain_host), creating a wildcard DNS record `*.jupyter.example.org`, and creating a wildcard SSL certificate.

```yaml
hub:
Expand Down
18 changes: 11 additions & 7 deletions jupyterhub/values.schema.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -272,15 +272,19 @@ properties:
dictionaries are updated.
```
properties:
subdomain_host:
type: string
description: |
The subdomain to use for hosting singleuser servers.
JupyterHub:
type: object
additionalProperties: true
properties:
subdomain_host:
type: string
description: |
The subdomain to use for hosting singleuser servers.
This helps protect against some cross-origin attacks by giving each user
their own subdomain `<user>.jupyter.example.org`.
This helps protect against some cross-origin attacks by giving each user
their own subdomain `<user>.jupyter.example.org`.
See {ref}`jupyterhub_subdomains`.
See {ref}`jupyterhub_subdomains`.
extraFiles: &extraFiles
type: object
additionalProperties: false
Expand Down

0 comments on commit 7152952

Please sign in to comment.