add consent-text parameter to datacenter config file

The consent-text parameter is the base64-encoded content of the
optional consent-banner which can be displayed before login. The limit
is 64 kiB, which is less than the pmxcfs file limit, but still enough
to also encode some small images.

Signed-off-by: Gabriel Goller <g.goller@proxmox.com>
This commit is contained in:
Gabriel Goller 2024-12-10 17:11:56 +01:00 committed by Thomas Lamprecht
parent 5f1b748a78
commit 54db793f42

View file

@ -449,6 +449,12 @@ my $datacenter_schema = {
pattern => "(?:${PVE::JSONSchema::PVE_TAG_RE};)*${PVE::JSONSchema::PVE_TAG_RE}",
typetext => "<tag>[;<tag>...]",
},
'consent-text' => {
optional => 1,
type => 'string',
maxLength => 64 * 1024,
description => "Consent text that is displayed before logging in."
},
},
};