Fix the config schema not passing validation with the default config

This commit is contained in:
Quentin Gliech
2025-08-14 14:22:24 +02:00
parent 06a8efeac3
commit be5ce0c6b5
2 changed files with 4 additions and 4 deletions

View File

@@ -2190,9 +2190,9 @@ This setting has the following sub-options:
* `enabled` (boolean): Enables the media redirect feature. If enabled, you must specify a `media_redirect.secret` or `media_redirect.secret_path`. Defaults to `false`.
* `secret` (string): Secret used to sign media redirect URLs. This must be set if `media_redirect.enabled` is set. Defaults to `null`.
* `secret` (string|null): Secret used to sign media redirect URLs. This must be set if `media_redirect.enabled` is set. Defaults to `null`.
* `secret_path` (string): An alternative to `media_redirect.secret` that specifies a file containing the secret. Defaults to `null`.
* `secret_path` (string|null): An alternative to `media_redirect.secret` that specifies a file containing the secret. Defaults to `null`.
* `ttl` (duration): How long the redirect URLs should be valid for. Defaults to `"10m"`.

View File

@@ -2448,13 +2448,13 @@ properties:
`media_redirect.secret` or `media_redirect.secret_path`.
default: false
secret:
type: string
type: ["string", "null"]
description: >-
Secret used to sign media redirect URLs. This must be set if
`media_redirect.enabled` is set.
default: null
secret_path:
type: string
type: ["string", "null"]
description: >-
An alternative to `media_redirect.secret` that specifies a file
containing the secret.