Commit 1489f9d8 authored by Bertrand Gauthier's avatar Bertrand Gauthier
Browse files

Mode maintenance: ajout de doc manquante sur la config.

parent cc5c8ed2
Loading
Loading
Loading
Loading
Loading
+5 −2
Changes for config/unicaen-app.local.php.dist: 5 added lines, 2 removed lines.
Original line number Diff line number Diff line
@@ -46,10 +46,13 @@ return array(
        'maintenance' => array(
            // activation (true: activé, false: désactivé)
            'enable' => false,
            // liste blanche des adresses IP clientes non concernées
            // liste blanche des adresses IP clientes à laisser passer
            'white_list' => [
                // Formats possibles : [ REMOTE_ADDR ] ou [ REMOTE_ADDR, HTTP_X_FORWARDED_FOR ]
                // Exemples :
                // ['127.0.0.1'], // localhost
//                ['10.60.11.88'], // Bertrand
                // ['172.17.0.1'], // Docker container IP
                // ['195.220.135.97', '194.199.107.33'], // Via proxy
            ],
        ),
    ),
+6 −2
Changes for src/UnicaenApp/Mvc/Listener/MaintenanceListener.php: 6 added lines, 2 removed lines.
Original line number Diff line number Diff line
@@ -5,7 +5,6 @@ namespace UnicaenApp\Mvc\Listener;
use Zend\EventManager\EventManagerInterface;
use Zend\EventManager\ListenerAggregateInterface;
use Zend\EventManager\ListenerAggregateTrait;
use Zend\Http\Response as HttpResponse;
use Zend\Mvc\MvcEvent;
use Zend\Mvc\Router\Http\RouteMatch;
use Zend\Stdlib\ArrayUtils;
@@ -18,10 +17,15 @@ class MaintenanceListener implements ListenerAggregateInterface
     * @var array
     */
    protected $config = [
        // activation (true: activé, false: désactivé)
        'enable' => false,
        // liste blanche des adresses IP clientes à laisser passer
        'white_list' => [
            // Formats possibles : [ REMOTE_ADDR ] ou [ REMOTE_ADDR, HTTP_X_FORWARDED_FOR ]
            // Exemples :
            // ['127.0.0.1'], // localhost
//           ['10.20.30.40'],
            // ['172.17.0.1'], // Docker container
            // ['195.220.135.97', '194.199.107.33'], // Via proxy
        ],
    ];