From 8a43b52e9897ff24a82fc629a696c53bcda007a6 Mon Sep 17 00:00:00 2001 From: jakubenglicky Date: Mon, 20 Sep 2021 16:41:47 +0200 Subject: [PATCH] =?UTF-8?q?Mo=C5=BEnost=20vypnout=20Tracy=20Debug=20Bar?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env | 2 ++ app/bootstrap.php | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.env b/.env index 8885bf9..c2c69d3 100644 --- a/.env +++ b/.env @@ -15,3 +15,5 @@ RABBITMQ_VHOST=/ ELASTICSEARCH_HOST=elasticsearch MONITORING_URL= + +SECRET_COOKIE=nette diff --git a/app/bootstrap.php b/app/bootstrap.php index e163bd9..dfb56cb 100644 --- a/app/bootstrap.php +++ b/app/bootstrap.php @@ -9,7 +9,7 @@ if (\PHP_SAPI === 'cli') { Kdyby\Console\DI\BootstrapHelper::setupMode($configurator); } else { - $configurator->setDebugMode(TRUE); + $configurator->setDebugMode(\getenv('SECRET_COOKIE') . '@' . $_SERVER['REMOTE_ADDR']); } $configurator->enableDebugger(__DIR__ . '/../log');