mirror of
https://github.com/immich-app/immich.git
synced 2024-12-28 11:15:54 +02:00
26 lines
1.1 KiB
TypeScript
26 lines
1.1 KiB
TypeScript
import { SystemConfigEntity, SystemConfigKey } from '@app/infra/entities';
|
|
|
|
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' },
|
|
],
|
|
};
|