mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-03-10 02:29:19 +03:00
50 lines
1.1 KiB
TypeScript
50 lines
1.1 KiB
TypeScript
|
|
import type { SectionConfigOverrides } from "./types";
|
||
|
|
|
||
|
|
const auth: SectionConfigOverrides = {
|
||
|
|
base: {
|
||
|
|
sectionDocs: "/configuration/authentication",
|
||
|
|
restartRequired: [
|
||
|
|
"enabled",
|
||
|
|
"reset_admin_password",
|
||
|
|
"failed_login_rate_limit",
|
||
|
|
],
|
||
|
|
fieldOrder: [
|
||
|
|
"enabled",
|
||
|
|
"reset_admin_password",
|
||
|
|
"cookie_name",
|
||
|
|
"cookie_secure",
|
||
|
|
"session_length",
|
||
|
|
"refresh_time",
|
||
|
|
"native_oauth_url",
|
||
|
|
"failed_login_rate_limit",
|
||
|
|
"trusted_proxies",
|
||
|
|
"hash_iterations",
|
||
|
|
"roles",
|
||
|
|
],
|
||
|
|
hiddenFields: ["admin_first_time_login", "roles"],
|
||
|
|
advancedFields: [
|
||
|
|
"cookie_name",
|
||
|
|
"cookie_secure",
|
||
|
|
"session_length",
|
||
|
|
"refresh_time",
|
||
|
|
"failed_login_rate_limit",
|
||
|
|
"trusted_proxies",
|
||
|
|
"hash_iterations",
|
||
|
|
"roles",
|
||
|
|
],
|
||
|
|
uiSchema: {
|
||
|
|
reset_admin_password: {
|
||
|
|
"ui:widget": "switch",
|
||
|
|
},
|
||
|
|
native_oauth_url: {
|
||
|
|
"ui:options": { size: "lg" },
|
||
|
|
},
|
||
|
|
failed_login_rate_limit: {
|
||
|
|
"ui:options": { size: "md" },
|
||
|
|
},
|
||
|
|
},
|
||
|
|
},
|
||
|
|
};
|
||
|
|
|
||
|
|
export default auth;
|