From ef8bb894f0201f75b7fe2bd18493d97077fa34f5 Mon Sep 17 00:00:00 2001 From: ErickSkrauch Date: Fri, 2 Dec 2016 00:23:40 +0300 Subject: [PATCH] =?UTF-8?q?=D0=94=D0=BE=D0=B1=D0=B0=D0=B2=D0=BB=D0=B5?= =?UTF-8?q?=D0=BD=D0=B0=20ENV=20=D0=BF=D0=B5=D1=80=D0=B5=D0=BC=D0=B5=D0=BD?= =?UTF-8?q?=D0=BD=D0=B0=D1=8F,=20=D0=BE=D1=82=D0=B2=D0=B5=D1=87=D0=B0?= =?UTF-8?q?=D1=8E=D1=89=D0=B0=D1=8F=20=D0=B7=D0=B0=20dsn=20=D0=B4=D0=BB?= =?UTF-8?q?=D1=8F=20=D1=81=D0=BE=D0=B5=D0=B4=D0=B8=D0=BD=D0=B5=D0=BD=D0=B8?= =?UTF-8?q?=D1=8F=20=D1=81=20sentry?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env-dist | 1 + common/config/config.php | 3 ++- tests/codeception/config/config.php | 3 +++ 3 files changed, 6 insertions(+), 1 deletion(-) 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, + ], ], ];