diff options
author | Nicolas LÅ“uillet <nicolas.loeuillet@smile.fr> | 2016-02-19 14:33:28 +0100 |
---|---|---|
committer | Nicolas LÅ“uillet <nicolas.loeuillet@smile.fr> | 2016-02-22 12:33:09 +0100 |
commit | fbbda941102326ac91c2ebf2f67a269860290ad7 (patch) | |
tree | 137aabe135485953338845aa29ae0ba2bb88d877 | |
parent | 12b5a8cea12c7c8b10ede7fd00d1f07ca06b1033 (diff) | |
download | wallabag-fbbda941102326ac91c2ebf2f67a269860290ad7.tar.gz wallabag-fbbda941102326ac91c2ebf2f67a269860290ad7.tar.zst wallabag-fbbda941102326ac91c2ebf2f67a269860290ad7.zip |
Fix #1351: add maintenance mode
-rw-r--r-- | app/AppKernel.php | 1 | ||||
-rw-r--r-- | app/config/config.yml | 10 | ||||
-rw-r--r-- | composer.json | 3 |
3 files changed, 13 insertions, 1 deletions
diff --git a/app/AppKernel.php b/app/AppKernel.php index 82d3aa38..08c9cc27 100644 --- a/app/AppKernel.php +++ b/app/AppKernel.php | |||
@@ -34,6 +34,7 @@ class AppKernel extends Kernel | |||
34 | new Wallabag\ImportBundle\WallabagImportBundle(), | 34 | new Wallabag\ImportBundle\WallabagImportBundle(), |
35 | new Doctrine\Bundle\MigrationsBundle\DoctrineMigrationsBundle(), | 35 | new Doctrine\Bundle\MigrationsBundle\DoctrineMigrationsBundle(), |
36 | new Craue\ConfigBundle\CraueConfigBundle(), | 36 | new Craue\ConfigBundle\CraueConfigBundle(), |
37 | new Lexik\Bundle\MaintenanceBundle\LexikMaintenanceBundle(), | ||
37 | ]; | 38 | ]; |
38 | 39 | ||
39 | if (in_array($this->getEnvironment(), ['dev', 'test'], true)) { | 40 | if (in_array($this->getEnvironment(), ['dev', 'test'], true)) { |
diff --git a/app/config/config.yml b/app/config/config.yml index bd269b07..07a4b0b6 100644 --- a/app/config/config.yml +++ b/app/config/config.yml | |||
@@ -200,3 +200,13 @@ scheb_two_factor: | |||
200 | kphoen_rulerz: | 200 | kphoen_rulerz: |
201 | executors: | 201 | executors: |
202 | doctrine: true | 202 | doctrine: true |
203 | |||
204 | lexik_maintenance: | ||
205 | authorized: | ||
206 | ips: ['127.0.0.1'] | ||
207 | driver: | ||
208 | ttl: 3600 | ||
209 | class: 'Lexik\Bundle\MaintenanceBundle\Drivers\DatabaseDriver' | ||
210 | response: | ||
211 | code: 503 | ||
212 | status: "wallabag Service Temporarily Unavailable" | ||
diff --git a/composer.json b/composer.json index c65ebda1..826eb91b 100644 --- a/composer.json +++ b/composer.json | |||
@@ -65,7 +65,8 @@ | |||
65 | "doctrine/doctrine-migrations-bundle": "^1.0", | 65 | "doctrine/doctrine-migrations-bundle": "^1.0", |
66 | "paragonie/random_compat": "~1.0", | 66 | "paragonie/random_compat": "~1.0", |
67 | "craue/config-bundle": "~1.4", | 67 | "craue/config-bundle": "~1.4", |
68 | "mnapoli/piwik-twig-extension": "^1.0" | 68 | "mnapoli/piwik-twig-extension": "^1.0", |
69 | "lexik/maintenance-bundle": "dev-master" | ||
69 | }, | 70 | }, |
70 | "require-dev": { | 71 | "require-dev": { |
71 | "doctrine/doctrine-fixtures-bundle": "~2.2", | 72 | "doctrine/doctrine-fixtures-bundle": "~2.2", |