diff options
-rw-r--r-- | app/AppKernel.php | 1 | ||||
-rw-r--r-- | app/config/config.yml | 10 | ||||
-rw-r--r-- | composer.json | 3 | ||||
-rw-r--r-- | docs/en/developer/maintenance.rst | 32 | ||||
-rw-r--r-- | docs/en/index.rst | 1 | ||||
-rw-r--r-- | docs/fr/developer/maintenance.rst | 33 | ||||
-rw-r--r-- | docs/fr/index.rst | 1 | ||||
-rw-r--r-- | docs/fr/user/create_account.rst | 2 | ||||
-rw-r--r-- | docs/fr/user/installation.rst | 2 |
9 files changed, 82 insertions, 3 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..fe6880aa 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": "~2.1" | ||
69 | }, | 70 | }, |
70 | "require-dev": { | 71 | "require-dev": { |
71 | "doctrine/doctrine-fixtures-bundle": "~2.2", | 72 | "doctrine/doctrine-fixtures-bundle": "~2.2", |
diff --git a/docs/en/developer/maintenance.rst b/docs/en/developer/maintenance.rst new file mode 100644 index 00000000..8277fb1f --- /dev/null +++ b/docs/en/developer/maintenance.rst | |||
@@ -0,0 +1,32 @@ | |||
1 | Maintenance mode | ||
2 | ================ | ||
3 | |||
4 | If you have some long tasks to do on your wallabag instance, you can enable a maintenance mode. | ||
5 | Nobody will have access to your instance. | ||
6 | |||
7 | Enable maintenance mode | ||
8 | ----------------------- | ||
9 | |||
10 | To enable maintenance mode, execute this command: | ||
11 | |||
12 | :: | ||
13 | |||
14 | bin/console lexik:maintenance:lock --no-interaction | ||
15 | |||
16 | You can set your IP address in ``app/config/config.yml`` if you want to access to wallabag even if maintenance mode is enabled. For example: | ||
17 | |||
18 | :: | ||
19 | |||
20 | lexik_maintenance: | ||
21 | authorized: | ||
22 | ips: ['127.0.0.1'] | ||
23 | |||
24 | |||
25 | Disable maintenance mode | ||
26 | ------------------------ | ||
27 | |||
28 | To disable maintenance mode, execute this command: | ||
29 | |||
30 | :: | ||
31 | |||
32 | bin/console lexik:maintenance:unlock | ||
diff --git a/docs/en/index.rst b/docs/en/index.rst index 17e375d2..1bac9ed7 100644 --- a/docs/en/index.rst +++ b/docs/en/index.rst | |||
@@ -41,3 +41,4 @@ The main documentation for this application is organized into a couple sections: | |||
41 | 41 | ||
42 | developer/docker | 42 | developer/docker |
43 | developer/translate | 43 | developer/translate |
44 | developer/maintenance | ||
diff --git a/docs/fr/developer/maintenance.rst b/docs/fr/developer/maintenance.rst new file mode 100644 index 00000000..4ea8d01f --- /dev/null +++ b/docs/fr/developer/maintenance.rst | |||
@@ -0,0 +1,33 @@ | |||
1 | Mode maintenance | ||
2 | ================ | ||
3 | |||
4 | Si vous devez effectuer de longues tâches sur votre instance de wallabag, vous pouvez activer le mode maintenance. | ||
5 | Plus personne ne pourra accéder à wallabag. | ||
6 | |||
7 | Activer le mode maintenance | ||
8 | --------------------------- | ||
9 | |||
10 | Pour activer le mode maintenance, exécutez cette commande : | ||
11 | |||
12 | :: | ||
13 | |||
14 | bin/console lexik:maintenance:lock --no-interaction | ||
15 | |||
16 | Vous pouvez spécifier votre adresse IP dans ``app/config/config.yml`` si vous souhaitez accéder à wallabag même si | ||
17 | le mode maintenance est activé. Par exemple : | ||
18 | |||
19 | :: | ||
20 | |||
21 | lexik_maintenance: | ||
22 | authorized: | ||
23 | ips: ['127.0.0.1'] | ||
24 | |||
25 | |||
26 | Désactiver le mode maintenance | ||
27 | ------------------------------ | ||
28 | |||
29 | Pour désactiver le mode maintenance, exécutez cette commande : | ||
30 | |||
31 | :: | ||
32 | |||
33 | bin/console lexik:maintenance:unlock | ||
diff --git a/docs/fr/index.rst b/docs/fr/index.rst index a47b8a62..af5ed14f 100644 --- a/docs/fr/index.rst +++ b/docs/fr/index.rst | |||
@@ -42,3 +42,4 @@ La documentation principale de cette application est découpée en plusieurs sec | |||
42 | 42 | ||
43 | developer/docker | 43 | developer/docker |
44 | developer/translate | 44 | developer/translate |
45 | developer/maintenance | ||
diff --git a/docs/fr/user/create_account.rst b/docs/fr/user/create_account.rst index 7fea6edf..4fc98069 100644 --- a/docs/fr/user/create_account.rst +++ b/docs/fr/user/create_account.rst | |||
@@ -27,7 +27,7 @@ Votre compte est maintenant actif. | |||
27 | Foire aux questions | 27 | Foire aux questions |
28 | ------------------- | 28 | ------------------- |
29 | 29 | ||
30 | Je ne veux pas valider le formulaire de création de compte | 30 | Je ne peux pas valider le formulaire de création de compte |
31 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | 31 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
32 | 32 | ||
33 | Soyez sur d'avoir bien renseigné tous les champs : | 33 | Soyez sur d'avoir bien renseigné tous les champs : |
diff --git a/docs/fr/user/installation.rst b/docs/fr/user/installation.rst index 9c5c3cc8..e4ff49ce 100644 --- a/docs/fr/user/installation.rst +++ b/docs/fr/user/installation.rst | |||
@@ -11,7 +11,7 @@ Vous aurez besoin des extensions suivantes pour que wallabag fonctionne. Il est | |||
11 | - php-session | 11 | - php-session |
12 | - php-ctype | 12 | - php-ctype |
13 | - php-dom | 13 | - php-dom |
14 | - pĥp-hash | 14 | - php-hash |
15 | - php-simplexml | 15 | - php-simplexml |
16 | - php-json | 16 | - php-json |
17 | - php-gd | 17 | - php-gd |