2024-03-20 23:02:51 +02:00
|
|
|
import { SystemConfigEntity, SystemConfigKey } from 'src/entities/system-config.entity';
|
2023-08-01 03:28:07 +02:00
|
|
|
|
|
|
|
export const systemConfigStub: Record<string, SystemConfigEntity[]> = {
|
|
|
|
defaults: [],
|
|
|
|
enabled: [
|
|
|
|
{ key: SystemConfigKey.OAUTH_ENABLED, value: true },
|
|
|
|
{ key: SystemConfigKey.OAUTH_AUTO_REGISTER, value: true },
|
|
|
|
{ key: SystemConfigKey.OAUTH_AUTO_LAUNCH, value: false },
|
|
|
|
{ key: SystemConfigKey.OAUTH_BUTTON_TEXT, value: 'OAuth' },
|
|
|
|
],
|
|
|
|
disabled: [{ key: SystemConfigKey.PASSWORD_LOGIN_ENABLED, value: false }],
|
|
|
|
noAutoRegister: [
|
|
|
|
{ key: SystemConfigKey.OAUTH_ENABLED, value: true },
|
|
|
|
{ key: SystemConfigKey.OAUTH_AUTO_LAUNCH, value: false },
|
|
|
|
{ key: SystemConfigKey.OAUTH_AUTO_REGISTER, value: false },
|
|
|
|
{ key: SystemConfigKey.OAUTH_BUTTON_TEXT, value: 'OAuth' },
|
|
|
|
],
|
|
|
|
override: [
|
|
|
|
{ key: SystemConfigKey.OAUTH_ENABLED, value: true },
|
|
|
|
{ key: SystemConfigKey.OAUTH_AUTO_REGISTER, value: true },
|
|
|
|
{ key: SystemConfigKey.OAUTH_MOBILE_OVERRIDE_ENABLED, value: true },
|
|
|
|
{ key: SystemConfigKey.OAUTH_MOBILE_REDIRECT_URI, value: 'http://mobile-redirect' },
|
|
|
|
{ key: SystemConfigKey.OAUTH_BUTTON_TEXT, value: 'OAuth' },
|
|
|
|
],
|
2024-03-02 02:46:07 +02:00
|
|
|
withDefaultStorageQuota: [
|
|
|
|
{ key: SystemConfigKey.OAUTH_ENABLED, value: true },
|
|
|
|
{ key: SystemConfigKey.OAUTH_AUTO_REGISTER, value: true },
|
|
|
|
{ key: SystemConfigKey.OAUTH_DEFAULT_STORAGE_QUOTA, value: 1 },
|
|
|
|
],
|
2024-03-06 07:45:40 +02:00
|
|
|
deleteDelay30: [{ key: SystemConfigKey.USER_DELETE_DELAY, value: 30 }],
|
2024-01-31 10:15:54 +02:00
|
|
|
libraryWatchEnabled: [{ key: SystemConfigKey.LIBRARY_WATCH_ENABLED, value: true }],
|
|
|
|
libraryWatchDisabled: [{ key: SystemConfigKey.LIBRARY_WATCH_ENABLED, value: false }],
|
2023-08-01 03:28:07 +02:00
|
|
|
};
|