From 76cf19a69ee631ee31353ef6b78b45b4ed503216 Mon Sep 17 00:00:00 2001 From: Kevin LEVRON Date: Thu, 5 Dec 2013 16:29:59 +0100 Subject: [PATCH] Doc (minor) : add allowedIPs example for debug module --- docs/guide/debugger.md | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/docs/guide/debugger.md b/docs/guide/debugger.md index a49471a..710f7a3 100644 --- a/docs/guide/debugger.md +++ b/docs/guide/debugger.md @@ -17,7 +17,17 @@ Add these lines to your config file: ``` **Watch out: by default the debug module only works when browsing the website from the localhost. If you want to use it -on a remote (staging) server, add the parameter allowedIPs to the config to whitelist your IP.** +on a remote (staging) server, add the parameter allowedIPs to the config to whitelist your IP, e.g. :** + +``` +'preload' => ['debug'], +'modules' => [ + 'debug' => [ + 'class'=>'yii\debug\Module', + 'allowedIPs'=>['1.2.3.4', '127.0.0.1', '::1'] + ] +] +``` How to use it -------------