mirror of
https://github.com/danny-avila/LibreChat.git
synced 2026-01-01 08:08:49 +01:00
📜 feat: Customize Privacy Policy & Terms of Service (#2091)
This commit is contained in:
parent
d4190c9320
commit
1b243c6f8c
9 changed files with 155 additions and 45 deletions
|
|
@ -147,6 +147,22 @@ export const rateLimitSchema = z.object({
|
|||
export const configSchema = z.object({
|
||||
version: z.string(),
|
||||
cache: z.boolean(),
|
||||
interface: z
|
||||
.object({
|
||||
privacyPolicy: z
|
||||
.object({
|
||||
externalUrl: z.string().optional(),
|
||||
openNewTab: z.boolean().optional(),
|
||||
})
|
||||
.optional(),
|
||||
termsOfService: z
|
||||
.object({
|
||||
externalUrl: z.string().optional(),
|
||||
openNewTab: z.boolean().optional(),
|
||||
})
|
||||
.optional(),
|
||||
})
|
||||
.optional(),
|
||||
fileStrategy: fileSourceSchema.optional(),
|
||||
registration: z
|
||||
.object({
|
||||
|
|
|
|||
|
|
@ -193,9 +193,21 @@ export type TResetPassword = {
|
|||
confirm_password?: string;
|
||||
};
|
||||
|
||||
export type TInterfaceConfig = {
|
||||
privacyPolicy?: {
|
||||
externalUrl?: string;
|
||||
openNewTab?: boolean;
|
||||
};
|
||||
termsOfService?: {
|
||||
externalUrl?: string;
|
||||
openNewTab?: boolean;
|
||||
};
|
||||
};
|
||||
|
||||
export type TStartupConfig = {
|
||||
appTitle: string;
|
||||
socialLogins?: string[];
|
||||
interface?: TInterfaceConfig;
|
||||
discordLoginEnabled: boolean;
|
||||
facebookLoginEnabled: boolean;
|
||||
githubLoginEnabled: boolean;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue