]> git.immae.eu Git - github/wallabag/wallabag.git/commitdiff
Merge pull request #1518 from mathbruyen/smtp-from-env
authorJeremy Benoist <j0k3r@users.noreply.github.com>
Thu, 3 Dec 2015 07:43:40 +0000 (08:43 +0100)
committerJeremy Benoist <j0k3r@users.noreply.github.com>
Thu, 3 Dec 2015 07:43:40 +0000 (08:43 +0100)
Set SMTP from environment variables

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": {