mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-03-10 10:33:11 +03:00
46 lines
1014 B
TypeScript
46 lines
1014 B
TypeScript
import type { SectionConfigOverrides } from "./types";
|
|
|
|
const auth: SectionConfigOverrides = {
|
|
base: {
|
|
sectionDocs: "/configuration/authentication",
|
|
restartRequired: [],
|
|
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;
|