2021-10-01 13:34:28 +02:00
|
|
|
<?php
|
|
|
|
|
|
|
|
return [
|
|
|
|
|
2022-03-28 17:09:29 +02:00
|
|
|
/*
|
|
|
|
|--------------------------------------------------------------------------
|
2022-09-21 21:50:41 +02:00
|
|
|
| Application infos
|
2022-03-28 17:09:29 +02:00
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
2024-11-27 11:29:07 +01:00
|
|
|
'version' => '5.4.3',
|
2022-09-21 21:50:41 +02:00
|
|
|
'repository' => 'https://github.com/Bubka/2FAuth',
|
|
|
|
'latestReleaseUrl' => 'https://api.github.com/repos/Bubka/2FAuth/releases/latest',
|
2023-04-18 08:43:36 +02:00
|
|
|
'installDocUrl' => 'https://docs.2fauth.app/getting-started/installation/self-hosted-server/',
|
2024-09-20 10:43:07 +02:00
|
|
|
'ssoDocUrl' => 'https://docs.2fauth.app/security/authentication/sso/',
|
2024-11-08 08:41:11 +01:00
|
|
|
'exportSchemaUrl' => 'https://docs.2fauth.app/usage/migration/#export-schema',
|
2022-09-21 21:50:41 +02:00
|
|
|
|
2021-10-08 23:27:15 +02:00
|
|
|
/*
|
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
| 2FAuth config
|
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
2021-10-01 13:34:28 +02:00
|
|
|
'config' => [
|
|
|
|
'isDemoApp' => env('IS_DEMO_APP', false),
|
2022-07-07 16:39:57 +02:00
|
|
|
'isTestingApp' => env('IS_TESTING_APP', false),
|
2022-04-14 11:34:40 +02:00
|
|
|
'trustedProxies' => env('TRUSTED_PROXIES', null),
|
2023-12-13 16:49:35 +01:00
|
|
|
'outgoingProxy' => env('PROXY_FOR_OUTGOING_REQUESTS', ''),
|
2022-05-16 22:55:50 +02:00
|
|
|
'proxyLogoutUrl' => env('PROXY_LOGOUT_URL', null),
|
2023-01-25 16:58:30 +01:00
|
|
|
'appSubdirectory' => env('APP_SUBDIRECTORY', ''),
|
2024-05-24 13:50:19 +02:00
|
|
|
'authLogRetentionTime' => envUnlessEmpty('AUTHENTICATION_LOG_RETENTION', 365),
|
2024-11-19 12:47:37 +01:00
|
|
|
'contentSecurityPolicy' => envUnlessEmpty('CONTENT_SECURITY_POLICY', true),
|
2024-04-23 16:28:42 +02:00
|
|
|
],
|
|
|
|
|
|
|
|
/*
|
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
| Proxy headers
|
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
'proxy_headers' => [
|
|
|
|
'forIp' => env('PROXY_HEADER_FOR_IP', null),
|
2021-10-01 13:34:28 +02:00
|
|
|
],
|
|
|
|
|
2023-03-16 15:57:22 +01:00
|
|
|
/*
|
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
| 2FAuth API config
|
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
'api' => [
|
|
|
|
'throttle' => env('THROTTLE_API', 60),
|
|
|
|
],
|
|
|
|
|
2021-12-03 22:50:28 +01:00
|
|
|
/*
|
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
| 2FAuth available translations
|
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
'locales' => [
|
|
|
|
'en',
|
|
|
|
'fr',
|
2022-10-14 15:54:24 +02:00
|
|
|
'de',
|
|
|
|
'zh',
|
2023-03-25 18:00:02 +01:00
|
|
|
'es',
|
|
|
|
'bg',
|
2023-09-13 09:18:41 +02:00
|
|
|
'ru',
|
2024-02-23 14:25:07 +01:00
|
|
|
'ja',
|
2024-03-15 15:12:57 +01:00
|
|
|
'hi',
|
2024-06-21 16:19:08 +02:00
|
|
|
'tr'
|
2021-12-03 22:50:28 +01:00
|
|
|
],
|
|
|
|
|
2021-10-08 23:27:15 +02:00
|
|
|
/*
|
|
|
|
|--------------------------------------------------------------------------
|
2023-02-17 17:12:53 +01:00
|
|
|
| Default values for app (global) settings
|
|
|
|
| These settings can be overloaded and persisted using the SettingService
|
2021-10-08 23:27:15 +02:00
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
2023-02-17 17:12:53 +01:00
|
|
|
'settings' => [
|
|
|
|
'useEncryption' => false,
|
|
|
|
'checkForUpdate' => true,
|
|
|
|
'lastRadarScan' => 0,
|
|
|
|
'latestRelease' => false,
|
2023-04-02 11:17:01 +02:00
|
|
|
'disableRegistration' => false,
|
2023-12-09 17:22:24 +01:00
|
|
|
'enableSso' => true,
|
2024-09-20 10:50:25 +02:00
|
|
|
'useSsoOnly' => false,
|
2024-02-29 13:42:28 +01:00
|
|
|
'restrictRegistration' => false,
|
2024-09-20 09:58:53 +02:00
|
|
|
'restrictList' => '',
|
|
|
|
'restrictRule' => '',
|
2024-03-08 15:05:49 +01:00
|
|
|
'keepSsoRegistrationEnabled' => false,
|
2024-10-18 14:28:45 +02:00
|
|
|
'storeIconsInDatabase' => false,
|
2023-02-17 17:12:53 +01:00
|
|
|
],
|
|
|
|
|
|
|
|
/*
|
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
| Default values for user preferences
|
|
|
|
| These settings can be overloaded and persisted by each user
|
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
'preferences' => [
|
2023-04-07 23:35:48 +02:00
|
|
|
'showOtpAsDot' => false,
|
2023-12-05 11:40:39 +01:00
|
|
|
'revealDottedOTP' => false,
|
2021-10-08 23:27:15 +02:00
|
|
|
'closeOtpOnCopy' => false,
|
2022-09-15 10:28:33 +02:00
|
|
|
'copyOtpOnDisplay' => false,
|
2024-03-01 14:46:15 +01:00
|
|
|
'clearSearchOnCopy' => false,
|
2021-10-08 23:27:15 +02:00
|
|
|
'useBasicQrcodeReader' => false,
|
|
|
|
'displayMode' => 'list',
|
|
|
|
'showAccountsIcons' => true,
|
2023-02-17 17:12:53 +01:00
|
|
|
'kickUserAfter' => 15,
|
2021-10-08 23:27:15 +02:00
|
|
|
'activeGroup' => 0,
|
|
|
|
'rememberActiveGroup' => true,
|
2024-03-06 10:04:41 +01:00
|
|
|
'viewDefaultGroupOnCopy' => false,
|
2021-10-08 23:27:15 +02:00
|
|
|
'defaultGroup' => 0,
|
|
|
|
'defaultCaptureMode' => 'livescan',
|
|
|
|
'useDirectCapture' => false,
|
2022-03-15 14:47:07 +01:00
|
|
|
'useWebauthnOnly' => false,
|
2022-07-21 19:07:53 +02:00
|
|
|
'getOfficialIcons' => true,
|
2023-02-17 17:12:53 +01:00
|
|
|
'theme' => 'system',
|
2023-02-08 16:03:11 +01:00
|
|
|
'formatPassword' => true,
|
|
|
|
'formatPasswordBy' => 0.5,
|
2023-02-17 17:12:53 +01:00
|
|
|
'lang' => 'browser',
|
2023-04-14 17:13:28 +02:00
|
|
|
'getOtpOnRequest' => true,
|
2024-05-29 11:41:14 +02:00
|
|
|
'notifyOnNewAuthDevice' => false,
|
2024-04-26 10:31:57 +02:00
|
|
|
'notifyOnFailedLogin' => false,
|
2024-04-25 16:56:35 +02:00
|
|
|
'timezone' => env('APP_TIMEZONE', 'UTC'),
|
2024-06-19 14:31:17 +02:00
|
|
|
'sortCaseSensitive' => false,
|
2024-06-21 14:23:03 +02:00
|
|
|
'autoCloseTimeout' => 2,
|
2024-06-21 14:25:39 +02:00
|
|
|
'AutoSaveQrcodedAccount' => false,
|
2024-11-04 15:04:58 +01:00
|
|
|
'showEmailInFooter' => true,
|
2021-10-08 23:27:15 +02:00
|
|
|
],
|
|
|
|
|
2023-11-20 23:25:36 +01:00
|
|
|
];
|