diff --git a/.env-dist b/.env-dist index 683a034..74035ec 100644 --- a/.env-dist +++ b/.env-dist @@ -4,6 +4,7 @@ YII_ENV=dev JWT_USER_SECRET= RECAPTCHA_PUBLIC= RECAPTCHA_SECRET= +SENTRY_DSN= # Web VIRTUAL_HOST=account.ely.by,authserver.ely.by diff --git a/common/config/config.php b/common/config/config.php index 418162a..fd19f21 100644 --- a/common/config/config.php +++ b/common/config/config.php @@ -22,7 +22,8 @@ return [ ], 'sentry' => [ 'class' => mito\sentry\SentryComponent::class, - 'dsn' => 'https://9f37c63079e24f35b585ab61dd7ee068:b501bfc8d9fc49ccadbf16731705b222@sentry.ely.by/3', + 'enabled' => !empty(getenv('SENTRY_DSN')), + 'dsn' => getenv('SENTRY_DSN'), 'environment' => YII_ENV_DEV ? 'development' : 'production', 'jsNotifier' => false, 'client' => [ diff --git a/tests/codeception/config/config.php b/tests/codeception/config/config.php index 3fbe89e..e91b77a 100644 --- a/tests/codeception/config/config.php +++ b/tests/codeception/config/config.php @@ -34,5 +34,8 @@ return [ // Для тестов нам не сильно важна безопасность, а вот время прохождения тестов значительно сокращается 'passwordHashCost' => 4, ], + 'sentry' => [ + 'enabled' => false, + ], ], ];