From b3e97d79406ae1b74dc66acbbf76d516fb8d81a2 Mon Sep 17 00:00:00 2001 From: Carsten Brandt Date: Wed, 23 Nov 2016 13:58:17 +0100 Subject: [PATCH] Update web.php to include example of 'allowedIps' for gii and debug module. fixes https://github.com/yiisoft/yii2-debug/pull/30 --- config/web.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/config/web.php b/config/web.php index 90a8287..2bc8561 100644 --- a/config/web.php +++ b/config/web.php @@ -55,11 +55,15 @@ if (YII_ENV_DEV) { $config['bootstrap'][] = 'debug'; $config['modules']['debug'] = [ 'class' => 'yii\debug\Module', + // uncomment the following to add your IP if you are not connecting from localhost. + //'allowedIPs' => ['127.0.0.1', '::1'], ]; $config['bootstrap'][] = 'gii'; $config['modules']['gii'] = [ 'class' => 'yii\gii\Module', + // uncomment the following to add your IP if you are not connecting from localhost. + //'allowedIPs' => ['127.0.0.1', '::1'], ]; }