mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-06-22 20:31:53 +03:00
* redact credentials in config endpoint with sentinel * backend test * frontend * apply widget for credential fields * i18n
75 lines
1.4 KiB
TypeScript
75 lines
1.4 KiB
TypeScript
import type { SectionConfigOverrides } from "./types";
|
|
|
|
const mqtt: SectionConfigOverrides = {
|
|
base: {
|
|
sectionDocs: "/integrations/mqtt",
|
|
restartRequired: [],
|
|
fieldOrder: [
|
|
"enabled",
|
|
"timestamp",
|
|
"bounding_box",
|
|
"crop",
|
|
"height",
|
|
"required_zones",
|
|
"quality",
|
|
],
|
|
hiddenFields: [],
|
|
advancedFields: ["height", "quality"],
|
|
overrideFields: [],
|
|
uiSchema: {
|
|
required_zones: {
|
|
"ui:widget": "zoneNames",
|
|
},
|
|
},
|
|
},
|
|
global: {
|
|
fieldOrder: [
|
|
"enabled",
|
|
"host",
|
|
"port",
|
|
"user",
|
|
"password",
|
|
"topic_prefix",
|
|
"client_id",
|
|
"stats_interval",
|
|
"qos",
|
|
"tls_ca_certs",
|
|
"tls_client_cert",
|
|
"tls_client_key",
|
|
"tls_insecure",
|
|
],
|
|
advancedFields: [
|
|
"stats_interval",
|
|
"qos",
|
|
"tls_ca_certs",
|
|
"tls_client_cert",
|
|
"tls_client_key",
|
|
"tls_insecure",
|
|
],
|
|
restartRequired: [
|
|
"enabled",
|
|
"host",
|
|
"port",
|
|
"user",
|
|
"password",
|
|
"topic_prefix",
|
|
"client_id",
|
|
"stats_interval",
|
|
"qos",
|
|
"tls_ca_certs",
|
|
"tls_client_cert",
|
|
"tls_client_key",
|
|
"tls_insecure",
|
|
],
|
|
liveValidate: true,
|
|
uiSchema: {
|
|
password: {
|
|
"ui:widget": "password",
|
|
"ui:options": { size: "xs" },
|
|
},
|
|
},
|
|
},
|
|
};
|
|
|
|
export default mqtt;
|