2FAuth/config/2fauth.php

131 lines
3.8 KiB
PHP
Raw Normal View History

<?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
|--------------------------------------------------------------------------
|
*/
'version' => '5.1.1',
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/',
2022-09-21 21:50:41 +02:00
2021-10-08 23:27:15 +02:00
/*
|--------------------------------------------------------------------------
| 2FAuth config
|--------------------------------------------------------------------------
|
*/
'config' => [
'isDemoApp' => env('IS_DEMO_APP', false),
'isTestingApp' => env('IS_TESTING_APP', false),
2022-04-14 11:34:40 +02:00
'trustedProxies' => env('TRUSTED_PROXIES', null),
'outgoingProxy' => env('PROXY_FOR_OUTGOING_REQUESTS', ''),
'proxyLogoutUrl' => env('PROXY_LOGOUT_URL', null),
2023-01-25 16:58:30 +01:00
'appSubdirectory' => env('APP_SUBDIRECTORY', ''),
'authLogRetentionTime' => env('AUTHENTICATION_LOG_RETENTION', 365),
],
/*
|--------------------------------------------------------------------------
| Proxy headers
|--------------------------------------------------------------------------
|
*/
'proxy_headers' => [
'forIp' => env('PROXY_HEADER_FOR_IP', null),
],
/*
|--------------------------------------------------------------------------
| 2FAuth API config
|--------------------------------------------------------------------------
|
*/
'api' => [
'throttle' => env('THROTTLE_API', 60),
],
/*
|--------------------------------------------------------------------------
| 2FAuth available translations
|--------------------------------------------------------------------------
|
*/
'locales' => [
'en',
'fr',
'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',
],
2021-10-08 23:27:15 +02: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
|--------------------------------------------------------------------------
|
*/
'settings' => [
'useEncryption' => false,
'checkForUpdate' => true,
'lastRadarScan' => 0,
'latestRelease' => false,
'disableRegistration' => false,
'enableSso' => true,
'restrictRegistration' => false,
'keepSsoRegistrationEnabled' => false,
],
/*
|--------------------------------------------------------------------------
| 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,
'revealDottedOTP' => false,
2021-10-08 23:27:15 +02:00
'closeOtpOnCopy' => false,
'copyOtpOnDisplay' => false,
'clearSearchOnCopy' => false,
2021-10-08 23:27:15 +02:00
'useBasicQrcodeReader' => false,
'displayMode' => 'list',
'showAccountsIcons' => true,
'kickUserAfter' => 15,
2021-10-08 23:27:15 +02:00
'activeGroup' => 0,
'rememberActiveGroup' => true,
'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,
'getOfficialIcons' => true,
'theme' => 'system',
'formatPassword' => true,
'formatPasswordBy' => 0.5,
'lang' => 'browser',
'getOtpOnRequest' => true,
'notifyOnNewAuthDevice' => true,
'notifyOnFailedLogin' => true,
'timezone' => env('APP_TIMEZONE', 'UTC'),
2021-10-08 23:27:15 +02:00
],
2023-11-20 23:25:36 +01:00
];