]> git.immae.eu Git - github/wallabag/wallabag.git/commitdiff
SMTP configuration through environment 1518/head
authorMathieu Bruyen <code@mais-h.eu>
Thu, 26 Nov 2015 08:20:23 +0000 (09:20 +0100)
committerMathieu Bruyen <code@mais-h.eu>
Thu, 26 Nov 2015 09:44:03 +0000 (10:44 +0100)
Configuring SMTP parameters required to be written in files which is not
convenient when using docker containers as the credentials need to be in
the filesystem.

Created environment parameters override for those parameters. A new build
script created in order to generate those parameters right before
launching the application.

composer.json

index b6a9c8541bb00bf3c678e5011d222ab002187261..5892dc1aa5c566d7a0cc5a2f0cab0130f5db4b08 100644 (file)
@@ -85,6 +85,9 @@
             "Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::clearCache",
             "Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::installAssets",
             "Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::installRequirementsFile"
+        ],
+        "build-parameters": [
+            "Incenteev\\ParameterHandler\\ScriptHandler::buildParameters"
         ]
     },
     "extra": {
         "symfony-web-dir": "web",
         "symfony-assets-install": "relative",
         "incenteev-parameters": {
-            "file": "app/config/parameters.yml"
+            "file": "app/config/parameters.yml",
+            "env-map": {
+                "mailer_host": "WALLABAG_MAILER_HOST",
+                "mailer_user": "WALLABAG_MAILER_USER",
+                "mailer_password": "WALLABAG_MAILER_PASSWORD",
+                "secret": "WALLABAG_SECRET"
+            }
         }
     },
     "autoload": {