2024-05-16 00:58:23 +02:00
|
|
|
import { SystemConfig } from 'src/config';
|
|
|
|
import { DeepPartial } from 'typeorm';
|
2023-08-01 03:28:07 +02:00
|
|
|
|
2024-05-16 00:58:23 +02:00
|
|
|
export const systemConfigStub = {
|
|
|
|
enabled: {
|
|
|
|
oauth: {
|
|
|
|
enabled: true,
|
|
|
|
autoRegister: true,
|
|
|
|
autoLaunch: false,
|
|
|
|
buttonText: 'OAuth',
|
|
|
|
},
|
|
|
|
},
|
|
|
|
disabled: {
|
|
|
|
passwordLogin: {
|
|
|
|
enabled: false,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
noAutoRegister: {
|
|
|
|
oauth: {
|
|
|
|
enabled: true,
|
|
|
|
autoRegister: false,
|
|
|
|
autoLaunch: false,
|
|
|
|
buttonText: 'OAuth',
|
|
|
|
},
|
|
|
|
},
|
|
|
|
override: {
|
|
|
|
oauth: {
|
|
|
|
enabled: true,
|
|
|
|
autoRegister: true,
|
|
|
|
mobileOverrideEnabled: true,
|
|
|
|
mobileRedirectUri: 'http://mobile-redirect',
|
|
|
|
buttonText: 'OAuth',
|
|
|
|
},
|
|
|
|
},
|
|
|
|
withDefaultStorageQuota: {
|
|
|
|
oauth: {
|
|
|
|
enabled: true,
|
|
|
|
autoRegister: true,
|
|
|
|
defaultStorageQuota: 1,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
deleteDelay30: {
|
|
|
|
user: {
|
|
|
|
deleteDelay: 30,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
libraryWatchEnabled: {
|
|
|
|
library: {
|
|
|
|
watch: {
|
|
|
|
enabled: true,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
libraryWatchDisabled: {
|
|
|
|
library: {
|
|
|
|
watch: {
|
|
|
|
enabled: false,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
libraryScan: {
|
|
|
|
library: {
|
|
|
|
scan: {
|
|
|
|
enabled: true,
|
|
|
|
cronExpression: '0 0 * * *',
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
machineLearningDisabled: {
|
|
|
|
machineLearning: {
|
|
|
|
enabled: false,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
} satisfies Record<string, DeepPartial<SystemConfig>>;
|