Skip to content

Commit 7152952

Browse files
committed
Fix location of subdomain_host in schema
1 parent 9658c24 commit 7152952

File tree

2 files changed

+12
-8
lines changed

2 files changed

+12
-8
lines changed

docs/source/administrator/security.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -496,7 +496,7 @@ This would restrict the access to only two IP addresses: `111.111.111.111` and `
496496

497497
You can reduce the chance of cross-origin attacks by giving each user
498498
their own subdomain `<user>.jupyter.example.org`.
499-
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.
499+
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.
500500

501501
```yaml
502502
hub:

jupyterhub/values.schema.yaml

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -272,15 +272,19 @@ properties:
272272
dictionaries are updated.
273273
```
274274
properties:
275-
subdomain_host:
276-
type: string
277-
description: |
278-
The subdomain to use for hosting singleuser servers.
275+
JupyterHub:
276+
type: object
277+
additionalProperties: true
278+
properties:
279+
subdomain_host:
280+
type: string
281+
description: |
282+
The subdomain to use for hosting singleuser servers.
279283
280-
This helps protect against some cross-origin attacks by giving each user
281-
their own subdomain `<user>.jupyter.example.org`.
284+
This helps protect against some cross-origin attacks by giving each user
285+
their own subdomain `<user>.jupyter.example.org`.
282286
283-
See {ref}`jupyterhub_subdomains`.
287+
See {ref}`jupyterhub_subdomains`.
284288
extraFiles: &extraFiles
285289
type: object
286290
additionalProperties: false

0 commit comments

Comments
 (0)