ext_localconf.php 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. <?php
  2. if (!defined('TYPO3')) {
  3. die('Access denied.');
  4. }
  5. $GLOBALS['TYPO3_CONF_VARS']['LOG']['Opentalent']['OtCore']['writerConfiguration'] = [
  6. // configuration for DEBUG level log entries
  7. TYPO3\CMS\Core\Log\LogLevel::DEBUG => [
  8. // add a FileWriter
  9. TYPO3\CMS\Core\Log\Writer\FileWriter::class => [
  10. // configuration for the writer
  11. 'logFile' => TYPO3\CMS\Core\Core\Environment::getVarPath() . '/log/ot_typo3.log'
  12. ]
  13. ],
  14. TYPO3\CMS\Core\Log\LogLevel::WARNING => [
  15. // add a DatabaseWriter
  16. TYPO3\CMS\Core\Log\Writer\DatabaseWriter::class => [
  17. 'logTable' => 'ot_log'
  18. ]
  19. ]
  20. ];
  21. // Because of this issue https://forge.typo3.org/issues/89449,
  22. // we have to xclass the BackendUserAuthenticator backend middleware
  23. // to allow public routes to be really public
  24. $GLOBALS['TYPO3_CONF_VARS']['SYS']['Objects'][TYPO3\CMS\Backend\Middleware\BackendUserAuthenticator::class] = [
  25. 'className' => Opentalent\OtCore\Middleware\OtBackendUserAuthenticator::class
  26. ];
  27. // ** Opentalent environment variables **
  28. // An array containing all or part of these variables could have been set before, for example
  29. // in the AdditionalConfiguration.php file.
  30. // In this case we merge them so that the pre-defined vars are not overridden.
  31. // (/!\ do not forget to clear the cache after any update here)
  32. $GLOBALS['OT'] = array_merge([
  33. 'API_BASE_URI' => 'http://docker.nginx.opentalent.fr',
  34. 'PUBLIC_API_BASE_URI' => 'https://local.api.opentalent.fr',
  35. 'DB_HOST' => 'db',
  36. 'DB_USER' => 'dbcloner',
  37. 'DB_PASSWORD' => 'wWZ4hYcrmHLW2mUK',
  38. 'FRAMES_BASE_URI' => 'https://local.frames.opentalent.fr',
  39. 'WEBSITE' => 'https://local.opentalent.fr',
  40. 'ADMIN_BASE_URL' => 'https://local.admin.opentalent.fr/',
  41. 'DASHBOARD_URL' => 'https://local.admin.opentalent.fr/#/dashboard',
  42. 'LOGIN_PAGE_URL' => 'https://local.admin.opentalent.fr/#/login',
  43. 'FILE_STORAGE_URL' => 'https://local.api.opentalent.fr/app.php/_internal/secure/files/'
  44. ], ($GLOBALS['OT'] ?? []));